We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0653da1 commit e22f3b9Copy full SHA for e22f3b9
sdcclient/_common.py
@@ -191,10 +191,10 @@ def get_notification_ids(self, channels=None):
191
found = True
192
ids.append(ch['id'])
193
elif c['type'] == 'SLACK':
194
- opt = ch['options']
195
- if 'channel' in opt and opt['channel'] == c['channel']:
196
- found = True
197
- ids.append(ch['id'])
+ if 'name' in c:
+ if c['name'] == ch.get('name'):
+ found = True
+ ids.append(ch['id'])
198
elif c['type'] == 'OPSGENIE':
199
if 'name' in c:
200
if c['name'] == ch.get('name'):
0 commit comments