diff --git a/inventory-app/common.py b/inventory-app/common.py index 4bffae6..c16925a 100644 --- a/inventory-app/common.py +++ b/inventory-app/common.py @@ -95,7 +95,7 @@ def spam(msg): if devenv: print(msg) else: - url = const.SLACK_CALLBACK + url = const.SLACK_DOORLOG_CALLBACK requests.post(url, json={"text": msg }) def build_query(base_query, fields=[], sort_fields={}): diff --git a/inventory-app/const.py b/inventory-app/const.py index ad1c2f6..0c8a172 100644 --- a/inventory-app/const.py +++ b/inventory-app/const.py @@ -17,5 +17,5 @@ AWS_ENDPOINT_URL = os.environ["AWS_ENDPOINT_URL"] INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"] MONGO_URI = os.environ["MONGO_URI"] MEMBERS_HOST = os.environ["MEMBERS_HOST"] -SLACK_VERIFICATION_TOKEN = os.environ["SLACK_VERIFICATION_TOKEN"] -SLACK_CALLBACK = os.environ["SLACK_CALLBACK"] +SLACK_VERIFICATION_TOKEN = os.environ["SLACK_VERIFICATION_TOKEN"] # used to verify (deprecated) incoming requests from slack +SLACK_DOORLOG_CALLBACK = os.environ["SLACK_DOORLOG_CALLBACK"] # used for sending logs to private channel