summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/pre
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-03-15 15:44:05 +0100
committerJan Chaloupka <jchaloup@redhat.com>2017-03-15 15:44:05 +0100
commit32d68afe4ab69c54a464b6fb2cc7893fd86aab2f (patch)
treef52633ec090b8e18b68a70fe204515eafeff6992 /playbooks/common/openshift-cluster/upgrades/pre
parent15130f01c9c80b67528d4e76b237822921a0a0c9 (diff)
downloadopenshift-32d68afe4ab69c54a464b6fb2cc7893fd86aab2f.tar.gz
openshift-32d68afe4ab69c54a464b6fb2cc7893fd86aab2f.tar.bz2
openshift-32d68afe4ab69c54a464b6fb2cc7893fd86aab2f.tar.xz
openshift-32d68afe4ab69c54a464b6fb2cc7893fd86aab2f.zip
don't assume openshift_upgrade_target is in a form d.d
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/pre')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml b/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml
index 38d1cd0f8..6de1ed061 100644
--- a/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml
+++ b/playbooks/common/openshift-cluster/upgrades/pre/validate_excluder.yml
@@ -15,11 +15,15 @@
debug:
msg: "{{ excluder }}: {{ excluder_version.stdout }}"
+ - name: Printing upgrade target version
+ debug:
+ msg: "{{ openshift_upgrade_target }}"
+
- name: Check the available {{ excluder }} version is at most of the upgrade target version
fail:
- msg: "Available {{ excluder }} version {{ excluder_version.stdout }} is higher than the upgrade target version {{ openshift_upgrade_target }}"
+ msg: "Available {{ excluder }} version {{ excluder_version.stdout }} is higher than the upgrade target version"
when:
- "{{ excluder_version.stdout != '' }}"
- - "{{ excluder_version.stdout.split('.')[0:2] | join('.') | version_compare(openshift_upgrade_target, '>', strict=True) }}"
+ - "{{ excluder_version.stdout.split('.')[0:2] | join('.') | version_compare(openshift_upgrade_target.split('.')[0:2] | join('.'), '>', strict=True) }}"
when:
- not openshift.common.is_atomic | bool