Browse Source

Merge pull request #1758 from dgoodwin/fix-json-vars

Fix use of JSON inventory vars with raw booleans.
Brenton Leanhardt 9 years ago
parent
commit
6f4b3ff2b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_facts/library/openshift_facts.py

+ 1 - 1
roles/openshift_facts/library/openshift_facts.py

@@ -1218,7 +1218,7 @@ def merge_facts(orig, new, additive_facts_to_overwrite, protected_facts_to_overw
             if key in inventory_json_facts:
                 # Watchout for JSON facts that sometimes load as strings.
                 # (can happen if the JSON contains a boolean)
-                if isinstance(new[key], str):
+                if isinstance(new[key], basestring):
                     facts[key] = yaml.safe_load(new[key])
                 else:
                     facts[key] = copy.deepcopy(new[key])