Skip to content

Commit 646af94

Browse files
authored
Merge pull request #25 from draios/dup-descriptions
create_alert with duplicate descriptions should be permitted
2 parents 222679d + 0eadb94 commit 646af94

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sdcclient/_client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,6 @@ def create_alert(self, name, description, severity, for_atleast_s, condition, se
270270
return [False, self.lasterr]
271271
j = res.json()
272272

273-
#
274-
# If this alert already exists, don't create it again
275-
#
276-
for db in j['alerts']:
277-
if 'description' in db:
278-
if db['description'] == description:
279-
return [False, 'alert ' + name + ' already exists']
280-
281273
#
282274
# Populate the alert information
283275
#

0 commit comments

Comments
 (0)