summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2018-01-31 09:53:18 -0500
committerAndrew Butcher <abutcher@redhat.com>2018-02-01 16:57:48 -0500
commite4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94 (patch)
tree43b1b3fd325260b2072376a4dad78338df902128 /roles
parent76bbd06963b474237925b97893c2403b3feba496 (diff)
downloadopenshift-e4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94.tar.gz
openshift-e4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94.tar.bz2
openshift-e4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94.tar.xz
openshift-e4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94.zip
lib_utils_oo_collect: Allow filtering on dot separated keys.
Diffstat (limited to 'roles')
-rw-r--r--roles/lib_utils/filter_plugins/oo_filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_utils/filter_plugins/oo_filters.py b/roles/lib_utils/filter_plugins/oo_filters.py
index 574743ff1..c355115b5 100644
--- a/roles/lib_utils/filter_plugins/oo_filters.py
+++ b/roles/lib_utils/filter_plugins/oo_filters.py
@@ -126,7 +126,7 @@ def lib_utils_oo_collect(data_list, attribute=None, filters=None):
raise errors.AnsibleFilterError(
"lib_utils_oo_collect expects filter to be a dict")
retval.extend([get_attr(d, attribute) for d in data if (
- all([d.get(key, None) == filters[key] for key in filters]))])
+ all([get_attr(d, key) == filters[key] for key in filters]))])
else:
retval.extend([get_attr(d, attribute) for d in data])