From 6b58c32e0756ce6e00787c21e48363d6bf2a625a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= <brousek@ics.muni.cz> Date: Mon, 5 Feb 2024 15:17:43 +0100 Subject: [PATCH] fix: main cannot have args --- perun/proxy/utils/sync_usable_token_types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perun/proxy/utils/sync_usable_token_types.py b/perun/proxy/utils/sync_usable_token_types.py index cfba4d3..dde3ba6 100644 --- a/perun/proxy/utils/sync_usable_token_types.py +++ b/perun/proxy/utils/sync_usable_token_types.py @@ -114,7 +114,8 @@ def parse_perun_user_id( return None -def main(args): +def main(): + args = get_args() perun_user_id_regex = re.compile(args.perun_user_id_regex) mfa_active_tokens_attr_name = args.mfa_active_tokens_attr_name adapters_manager = get_adapters_manager(args.perun_connector_config_path) @@ -134,4 +135,4 @@ def main(args): if __name__ == "__main__": - main(get_args()) + main() -- GitLab