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 947ead2 commit a087dd2Copy full SHA for a087dd2
sdcclient/_client.py
@@ -126,9 +126,14 @@ def get_notification_ids(self, channels):
126
ids.append(ch['id'])
127
elif c['type'] == 'EMAIL':
128
opt = ch['options']
129
- if set(c['emailRecipients']) == set(opt['emailRecipients']):
130
- found = True
131
- ids.append(ch['id'])
+ if 'emailRecipients' in c:
+ if set(c['emailRecipients']) == set(opt['emailRecipients']):
+ found = True
132
+ ids.append(ch['id'])
133
+ elif 'name' in c:
134
+ if c['name'] == ch['name']:
135
136
137
elif c['type'] == 'PAGER_DUTY':
138
139
if opt['account'] == c['account'] and opt['serviceName'] == c['serviceName']:
0 commit comments