summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-10-23 13:10:20 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-10-23 13:10:20 +0200
commitf9e9056f2d8ba963c45e189344adddcb10ee5f3a (patch)
treed89d0e8363a964a1cfb49f645051e3fb33a3247f /playbooks/common/openshift-cluster
parent1a0f460eb67f1a6fa82385faa91df4edd4b9d7d3 (diff)
downloadopenshift-f9e9056f2d8ba963c45e189344adddcb10ee5f3a.tar.gz
openshift-f9e9056f2d8ba963c45e189344adddcb10ee5f3a.tar.bz2
openshift-f9e9056f2d8ba963c45e189344adddcb10ee5f3a.tar.xz
openshift-f9e9056f2d8ba963c45e189344adddcb10ee5f3a.zip
strip dash when comparing version with Python3
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/pre/verify_upgrade_targets.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre/verify_upgrade_targets.yml b/playbooks/common/openshift-cluster/upgrades/pre/verify_upgrade_targets.yml
index 142ce5f3d..b9b3d323a 100644
--- a/playbooks/common/openshift-cluster/upgrades/pre/verify_upgrade_targets.yml
+++ b/playbooks/common/openshift-cluster/upgrades/pre/verify_upgrade_targets.yml
@@ -37,7 +37,7 @@
fail:
msg: "OpenShift {{ avail_openshift_version }} is available, but {{ openshift_upgrade_target }} or greater is required"
when:
- - openshift_pkg_version | default('0.0', True) | version_compare(openshift_release, '<')
+ - (openshift_pkg_version | default('-0.0', True)).split('-')[1] | version_compare(openshift_release, '<')
- name: Fail when openshift version does not meet minium requirement for Origin upgrade
fail: