From ffa61f2ed1f69336d923ccb476aba4a66d21c6b3 Mon Sep 17 00:00:00 2001 From: rasmus Date: Thu, 17 Aug 2023 22:21:09 +0300 Subject: [PATCH] comments for doorboy log channel --- inventory-app/common.py | 2 +- inventory-app/const.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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