Skip to content

Commit 2716f7c

Browse files
author
Bryan Havenstein
committed
Typing issue
1 parent 25a8df5 commit 2716f7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ansible_base/authentication/utils/claims.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def process_user_attributes(trigger_condition: dict, attributes: dict, auth_id:
358358

359359
def _process_user_value(
360360
has_access: Optional[bool], trigger_condition: dict, user_value: List[str], join_condition: str, attribute: str, auth_id: int, map_id: int
361-
) -> str:
361+
) -> Optional[bool]:
362362
for a_user_value in user_value:
363363
# We are going to do mostly string comparisons, so convert the attribute to a
364364
# string just in case it came back as an int or something funky
@@ -400,6 +400,8 @@ def _process_user_value(
400400
has_access = has_access_with_join(has_access, is_in, join_condition)
401401
_prefixed_debug(auth_id, map_id, f"{header} {'is in' if is_in else 'is not in'} [{trigger_value}], {_result_suffix(is_in)}")
402402

403+
return has_access
404+
403405

404406
def _result_suffix(result: bool) -> str:
405407
return "allowing" if result else "skipping"

0 commit comments

Comments
 (0)