Skip to content

Commit 49bb246

Browse files
authored
bug(registry): fix slack notification (#38087)
### Fix Hotfixing a incorrect env var evaluation I introduced which prevents slack messages form being sent
1 parent 2b97e6d commit 49bb246

File tree

1 file changed

+1
-1
lines changed
  • airbyte-ci/connectors/metadata_service/orchestrator/orchestrator/ops

1 file changed

+1
-1
lines changed

airbyte-ci/connectors/metadata_service/orchestrator/orchestrator/ops/slack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def send_slack_message(context: OpExecutionContext, channel: str, message: str,
2929
channel (str): The channel to send the message to.
3030
message (str): The message to send.
3131
"""
32-
if os.getenv("SLACK_TOKEN") == "" and os.getenv("SLACK_NOTIFICATIONS_DISABLED") != "true":
32+
if os.getenv("SLACK_TOKEN") and os.getenv("SLACK_NOTIFICATIONS_DISABLED") != "true":
3333
# Ensure that a failure to send a slack message does not cause the pipeline to fail
3434
try:
3535
for message_chunk in chunk_messages(message):

0 commit comments

Comments
 (0)