diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-10-21 15:34:45 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-10-22 11:02:11 -0400 |
commit | 493dca5935e1706a76231b13a639c40de9a63cdc (patch) | |
tree | 2b4bf39645eb3fc1d3f1b62f4c8bdbee4b87269d /roles/openshift_facts/library | |
parent | 917f8b157b10ee605cee75065fe874c5561a0573 (diff) | |
download | openshift-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/openshift_facts/library')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 2 |
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 |