summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-11-06 11:11:54 -0500
committerMichael Gugino <mgugino@redhat.com>2017-11-06 11:11:54 -0500
commit45f01526ef99608f897e2482c645876862a8d9df (patch)
treea1bc500983be7046f4f4a96edfc718b9ced88e5c /playbooks/common/openshift-cluster
parent5efcf4a2f7e9c2f21c6f9f86dc08f12fd5f56290 (diff)
downloadopenshift-45f01526ef99608f897e2482c645876862a8d9df.tar.gz
openshift-45f01526ef99608f897e2482c645876862a8d9df.tar.bz2
openshift-45f01526ef99608f897e2482c645876862a8d9df.tar.xz
openshift-45f01526ef99608f897e2482c645876862a8d9df.zip
Fix preupgrade authorization objects are in sync
Currently, this task is executed based on openshift_version. openshift_version is based on the upgrade target, thus not the currently install versions. This commit ensures that the task executes as intended. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1508301
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml b/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml
index 8e4f99c91..022b4b4fb 100644
--- a/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml
+++ b/playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml
@@ -15,7 +15,7 @@
- name: Confirm OpenShift authorization objects are in sync
command: >
{{ openshift.common.client_binary }} adm migrate authorization
- when: openshift_version | version_compare('3.7','<')
+ when: openshift_upgrade_target | version_compare('3.8','<')
changed_when: false
register: l_oc_result
until: l_oc_result.rc == 0