diff options
| author | Scott Dodson <sdodson@redhat.com> | 2018-02-08 19:44:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-08 19:44:21 -0500 |
| commit | 3489d4f75fd2773f5fa5a684b82bf8ca44f1fa02 (patch) | |
| tree | 77fc852e5bd7aa2d346b3cdd0a178d5b65f7146b /roles/lib_utils | |
| parent | 0217c03b15bbf5ffcd5491f789de65ecb6e22ddd (diff) | |
| parent | e4f4204c4dcb5d9d300a2e2cca9cabe4b7afcf94 (diff) | |
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.py | 2 |
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]) |
