summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2016-01-29 14:24:43 -0500
committerJason DeTiberus <jdetiber@redhat.com>2016-02-01 09:29:13 -0500
commit5a50546e89b28706c732a5beafb2aeebed2a160a (patch)
treed0d2dbe6c897646d90b2525f305b1072b94b31c8
parent57159f68031aeb08c757a0f17ec3c2876947fc62 (diff)
downloadopenshift-5a50546e89b28706c732a5beafb2aeebed2a160a.tar.gz
openshift-5a50546e89b28706c732a5beafb2aeebed2a160a.tar.bz2
openshift-5a50546e89b28706c732a5beafb2aeebed2a160a.tar.xz
openshift-5a50546e89b28706c732a5beafb2aeebed2a160a.zip
use yaml for loading lable info instead of json
-rw-r--r--filter_plugins/oo_filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index c2d066b05..c0e38d2f6 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -311,7 +311,7 @@ class FilterModule(object):
return False
if isinstance(labels, basestring):
- labels = json.loads(labels)
+ labels = yaml.safe_load(labels)
if not isinstance(labels, dict):
raise errors.AnsibleFilterError(
"failed expected node labels to be a dict or serializable to a dict"