summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-02-08 19:44:21 -0500
committerGitHub <noreply@github.com>2018-02-08 19:44:21 -0500
commit3489d4f75fd2773f5fa5a684b82bf8ca44f1fa02 (patch)
tree77fc852e5bd7aa2d346b3cdd0a178d5b65f7146b /roles/lib_utils
parent0217c03b15bbf5ffcd5491f789de65ecb6e22ddd (diff)
parente4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94 (diff)
downloadopenshift-3489d4f75fd2773f5fa5a684b82bf8ca44f1fa02.tar.gz
openshift-3489d4f75fd2773f5fa5a684b82bf8ca44f1fa02.tar.bz2
openshift-3489d4f75fd2773f5fa5a684b82bf8ca44f1fa02.tar.xz
openshift-3489d4f75fd2773f5fa5a684b82bf8ca44f1fa02.zip
Merge pull request #6926 from abutcher/etcd-ca-host
Determine which host is the etcd CA host
Diffstat (limited to 'roles/lib_utils')
-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])