From 5a50546e89b28706c732a5beafb2aeebed2a160a Mon Sep 17 00:00:00 2001 From: Jason DeTiberus Date: Fri, 29 Jan 2016 14:24:43 -0500 Subject: use yaml for loading lable info instead of json --- filter_plugins/oo_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filter_plugins') 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" -- cgit v1.2.1