We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a474dd5 commit 2c6d724Copy full SHA for 2c6d724
1 file changed
libraries/cloudharness-common/cloudharness/auth/user_attributes.py
@@ -14,13 +14,13 @@ def addChild(self, child):
14
self.children.append(child)
15
16
17
-def _filter_attrs(attrs, valid_keys):
+def _filter_attrs(attrs, valid_keys={}):
18
# only use the attributes defined by the valid keys map
19
valid_attrs = {}
20
if attrs is None:
21
return valid_attrs
22
for key in attrs:
23
- if key in valid_keys:
+ if key in valid_keys or not valid_keys:
24
# map to value
25
valid_attrs.update({key: attrs[key][0]})
26
0 commit comments