Ver código fonte

Merge pull request #6024 from mgugino-upstream-stage/upgrade-validator-fix

Automatic merge from submit-queue.

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
OpenShift Merge Robot 7 anos atrás
pai
commit
a62b37b910

+ 1 - 1
playbooks/common/openshift-cluster/upgrades/v3_7/validator.yml

@@ -15,7 +15,7 @@
   - name: Confirm OpenShift authorization objects are in sync
   - name: Confirm OpenShift authorization objects are in sync
     command: >
     command: >
       {{ openshift.common.client_binary }} adm migrate authorization
       {{ 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
     changed_when: false
     register: l_oc_result
     register: l_oc_result
     until: l_oc_result.rc == 0
     until: l_oc_result.rc == 0