fix: subprocess.run

This commit is contained in:
dettlaff 2024-11-27 17:01:06 +04:00
parent 96016650c1
commit 241aa4b0d6

View file

@ -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(
[