fix: add string parsing

This commit is contained in:
dettlaff 2024-11-22 23:34:07 +04:00
parent 798f1631af
commit 1a8b0a51eb

View file

@ -69,6 +69,8 @@ class KanidmAdminToken:
except subprocess.CalledProcessError as e:
print(e)
kanidm_admin_token = kanidm_admin_token.splitlines()[-1]
redis.set("kanidm:token", kanidm_admin_token)
return kanidm_admin_token