Skip to content

Commit

Permalink
Fix ENV assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Wendland committed Jun 22, 2023
1 parent e5798fc commit 999b901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
if 'apiKey' not in apikey_conf['issuer'] or len(apikey_conf['issuer']['apiKey']) < 1:
if os.environ.get('AS_APIKEY_ISSUER'):
app.logger.info("... ... no API-Key provided in config, using API-Key from ENV ...")
apikey_conf['ishare']['apiKey'] = os.environ.get('AS_APIKEY_ISSUER')
apikey_conf['issuer']['apiKey'] = os.environ.get('AS_APIKEY_ISSUER')
else:
app.logger.info("... ... no API-Key provided, generating random API-Key ...")
apikey_conf['issuer']['apiKey'] = str(uuid.uuid4())
Expand Down

0 comments on commit 999b901

Please sign in to comment.