summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-10-21 15:34:45 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-10-22 11:02:11 -0400
commit493dca5935e1706a76231b13a639c40de9a63cdc (patch)
tree2b4bf39645eb3fc1d3f1b62f4c8bdbee4b87269d /roles
parent917f8b157b10ee605cee75065fe874c5561a0573 (diff)
downloadopenshift-493dca5935e1706a76231b13a639c40de9a63cdc.tar.gz
openshift-493dca5935e1706a76231b13a639c40de9a63cdc.tar.bz2
openshift-493dca5935e1706a76231b13a639c40de9a63cdc.tar.xz
openshift-493dca5935e1706a76231b13a639c40de9a63cdc.zip
Fix error in openshift_facts
- fix error scraping openshift version for version numbers
Diffstat (limited to 'roles')
-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 bd8d96657..3570de693 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -636,7 +636,7 @@ def get_openshift_version():
if os.path.isfile('/usr/bin/openshift'):
_, output, _ = module.run_command(['/usr/bin/openshift', 'version'])
- versions = dict(e.split(' v') for e in output.splitlines())
+ versions = dict(e.split(' v') for e in output.splitlines() if ' v' in e)
version = versions.get('openshift', '')
#TODO: acknowledge the possility of a containerized install