Skip to content

Commit 39bbbc7

Browse files
committed
Redo _filter_config
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent e1f3348 commit 39bbbc7

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/satosa/micro_services/ldap_attribute_store.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,12 @@ def _filter_config(self, config, fields=None):
239239
dictionary.
240240
"""
241241
filter_fields_default = ["bind_password", "connection"]
242-
243242
filter_fields = fields or filter_fields_default
244-
return dict(
245-
map(
246-
lambda key: (key, "<hidden>" if key in filter_fields else config[key]),
247-
config.keys(),
248-
)
249-
)
243+
result = {
244+
field: "<hidden>" if field in filter_fields else value
245+
for field, value in config.items()
246+
}
247+
return result
250248

251249
def _ldap_connection_factory(self, config):
252250
"""

0 commit comments

Comments
 (0)