Browse Source

Merge pull request #3428 from giuseppe/do-not-parse-latest

openshift_facts: handle 'latest' version
Scott Dodson 8 years ago
parent
commit
51d26ee26c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_facts/library/openshift_facts.py

+ 1 - 1
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]])