mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-12-03 03:46:59 +00:00
fix: subprocess.run
This commit is contained in:
parent
241aa4b0d6
commit
cb9e5c1307
|
@ -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(
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue