Skip to content
Snippets Groups Projects
Commit ff0b2758 authored by Bert Palm's avatar Bert Palm :bug:
Browse files

added more checks

parent f5c40a64
No related branches found
No related tags found
1 merge request!235`configDB` instead of `frontendb`
Pipeline #480644 passed
......@@ -71,7 +71,13 @@ if __name__ == "__main__":
thing_id = sys.argv[1]
ssh_priv_key = sys.argv[2]
for k in ["CONFIGDB_DSN", "MINIO_URL", "MINIO_SECURE"]:
for k in [
"CONFIGDB_DSN",
"MINIO_URL",
"MINIO_USER",
"MINIO_PASSWORD",
"MINIO_SECURE",
]:
if not os.environ.get(k):
raise EnvironmentError(f"Environment variable {k} must be set")
dsn = os.environ["CONFIGDB_DSN"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment