Browse Source

Merge pull request #650 from smunilla/master

openshift_facts.py: Correct error case for uninstalled systems
Brenton Leanhardt 9 years ago
parent
commit
fe5da92d37
1 changed files with 2 additions and 0 deletions
  1. 2 0
      roles/openshift_facts/library/openshift_facts.py

+ 2 - 0
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())