diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-10-02 09:39:44 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-10-02 09:39:44 -0400 |
commit | fe5da92d3772802dc50d0bbe602e67cc3b5c7dec (patch) | |
tree | 1d558fccba625213c2727c1ee807cdc078f86db1 | |
parent | 82cf8189c7ea1709890926f64f0b4875b552dfc2 (diff) | |
parent | fe3ed63a6f7103a91888df3807121ac6b43cde7c (diff) | |
download | openshift-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
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 2 |
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()) |