summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-10-02 09:39:44 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2015-10-02 09:39:44 -0400
commitfe5da92d3772802dc50d0bbe602e67cc3b5c7dec (patch)
tree1d558fccba625213c2727c1ee807cdc078f86db1 /roles
parent82cf8189c7ea1709890926f64f0b4875b552dfc2 (diff)
parentfe3ed63a6f7103a91888df3807121ac6b43cde7c (diff)
downloadopenshift-fe5da92d3772802dc50d0bbe602e67cc3b5c7dec.tar.gz
openshift-fe5da92d3772802dc50d0bbe602e67cc3b5c7dec.tar.bz2
openshift-fe5da92d3772802dc50d0bbe602e67cc3b5c7dec.tar.xz
openshift-fe5da92d3772802dc50d0bbe602e67cc3b5c7dec.zip
Merge pull request #650 from smunilla/master
openshift_facts.py: Correct error case for uninstalled systems
Diffstat (limited to 'roles')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index aeab7152c..987f7f7da 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -605,6 +605,8 @@ def get_openshift_version():
Returns:
version: the current openshift version
"""
+ 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())