From 3b20ba0ffda5741c35e38d82ef27a12e2dc80d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de> Date: Wed, 8 Mar 2023 12:25:55 +0100 Subject: [PATCH] set role as proper type --- plugins/unity_integration.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py index bbb7c87..3306ab7 100644 --- a/plugins/unity_integration.py +++ b/plugins/unity_integration.py @@ -64,7 +64,6 @@ class UnityIntegrationView(AppBuilderBaseView): # check airflow user backend # check if user already exists, if not create it (with long random password) sec_manager = app.appbuilder.sm - log.debug("Security manager type is " + str(type(sec_manager))) fab_user = sec_manager.find_user(username=persistent_identifier) log.debug("Searching for user by name gave '" + (str(fab_user)) + "'") @@ -76,7 +75,7 @@ class UnityIntegrationView(AppBuilderBaseView): first_name=first_name, last_name=last_name, email=email, - role=role, + role=sec_manager.find_role(role), password=''.join(random.choice(characters) for i in range(20)) ) # login as that user -- GitLab