summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-02-21 09:34:15 -0500
committerGitHub <noreply@github.com>2017-02-21 09:34:15 -0500
commit51d26ee26c6f382c2eb1c2ece5b5c361b7c2a57a (patch)
tree0093d407db286c098d3b7d2fe4e30885815e6f3c
parentc9563d87c6de11503c5e8fe29a794b8c2846afcc (diff)
parentd64b0db2c48158f1be18d3dad47a3df7119b1444 (diff)
downloadopenshift-51d26ee26c6f382c2eb1c2ece5b5c361b7c2a57a.tar.gz
openshift-51d26ee26c6f382c2eb1c2ece5b5c361b7c2a57a.tar.bz2
openshift-51d26ee26c6f382c2eb1c2ece5b5c361b7c2a57a.tar.xz
openshift-51d26ee26c6f382c2eb1c2ece5b5c361b7c2a57a.zip
Merge pull request #3428 from giuseppe/do-not-parse-latest
openshift_facts: handle 'latest' version
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index ef7f159c5..2503d6212 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -864,7 +864,7 @@ def set_version_facts_if_unset(facts):
if 'common' in facts:
deployment_type = facts['common']['deployment_type']
openshift_version = get_openshift_version(facts)
- if openshift_version:
+ if openshift_version and openshift_version != "latest":
version = LooseVersion(openshift_version)
facts['common']['version'] = openshift_version
facts['common']['short_version'] = '.'.join([str(x) for x in version.version[0:2]])