Skip to content

Commit

Permalink
Look for envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjtaylor committed Dec 14, 2023
1 parent d61751b commit 50bfbfe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@
import sys
import os

fileview = sys.argv[1]
webhook_url = sys.argv[2]

if os.getenv("FILEVIEW") is not None:
fileview = os.getenv("FILEVIEW")
else:
fileview = sys.argv[1]

if os.getenv("WEBHOOK") is not None:
webhook_url = os.getenv("WEBHOOK")
else:
webhook_url = sys.argv[2]

def synapse_login(synapse_config=synapseclient.client.CONFIG_FILE):
"""Login to Synapse. Looks first for secrets.
Expand Down

0 comments on commit 50bfbfe

Please sign in to comment.