Skip to content

Commit

Permalink
HDX-10377 chaning env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-m-g committed Dec 5, 2024
1 parent 8ebcf4e commit 8363c60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ services:
REDIS_STREAM_CONSUMER_NAME: ${REDIS_STREAM_CONSUMER_NAME:-hdx_jp_sw_pcode_consumer_1}
HDX_URL: ${HDX_URL:-https://feature.data-humdata-org.ahconu.org}
HDX_KEY: ${HDX_KEY:-HDX_TOKEN}
HDX_SLACK_NOTIFICATION_CHANNEL: ${HDX_SLACK_NOTIFICATION_CHANNEL:-topic-pcode-notifications-dev}
HDX_SLACK_NOTIFICATION_ACCESS_TOKEN: ${HDX_SLACK_NOTIFICATION_ACCESS_TOKEN:-SLACK_TOKEN}
HDX_PCODE_SLACK_NOTIFICATION_CHANNEL: ${HDX_PCODE_SLACK_NOTIFICATION_CHANNEL:-topic-pcode-notifications-dev}
HDX_PCODE_SLACK_NOTIFICATION_ACCESS_TOKEN: ${HDX_PCODE_SLACK_NOTIFICATION_ACCESS_TOKEN:-SLACK_TOKEN}

# redis is only needed for testing and locally playing with redis
# redis:
Expand Down
4 changes: 2 additions & 2 deletions slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

class SlackClientWrapper():
def __init__(self) -> None:
self.slack_channel = os.getenv('HDX_SLACK_NOTIFICATION_CHANNEL')
self.slack_channel = os.getenv('HDX_PCODE_SLACK_NOTIFICATION_CHANNEL')
# self.slack_channel = 'test-channel'


self.slack_client = None
token = os.getenv('HDX_SLACK_NOTIFICATION_ACCESS_TOKEN')
token = os.getenv('HDX_PCODE_SLACK_NOTIFICATION_ACCESS_TOKEN')
if token:
self.slack_client = slack_sdk.WebClient(token=token)
logger.debug('Slack client initialized')
Expand Down

0 comments on commit 8363c60

Please # to comment.