From cb9e5c1307d9745a40278ac15681b16f85854ab1 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Wed, 27 Nov 2024 17:13:20 +0400 Subject: [PATCH] fix: subprocess.run --- selfprivacy_api/repositories/users/kanidm_user_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index 232b756..90549b6 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -43,7 +43,7 @@ class KanidmAdminToken: logging.error("create_and_save_token START") with temporary_env_var(key="KANIDM_PASSWORD", value=kanidm_admin_password): - subprocess.run("kanidm", "login", "-D", "idm_admin") + subprocess.run(["kanidm", "login", "-D", "idm_admin"]) kanidm_admin_token = subprocess.check_output( [