Normalize mounted provisioner token
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

This commit is contained in:
tegwick 2026-07-28 01:04:15 +02:00
parent 609a718348
commit dbf7cfd862

View file

@ -48,7 +48,9 @@ def main():
base_url=os.environ["LLDAP_URL"],
admin_password=os.environ["LLDAP_ADMIN_PASSWORD"],
)
Handler.service_token = os.environ["PROVISIONER_SERVICE_TOKEN"]
Handler.service_token = os.environ["PROVISIONER_SERVICE_TOKEN"].strip()
if not Handler.service_token:
raise ValueError("PROVISIONER_SERVICE_TOKEN must not be empty")
ThreadingHTTPServer(("0.0.0.0", 8080), Handler).serve_forever()