Skip to content

Commit 2a69ddf

Browse files
authored
Merge pull request #50 from gbaufake/list-triggers
Fixing List Triggers for Hawkular 2.0
2 parents 2ed6285 + 6907801 commit 2a69ddf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

hawkular/alerts.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ class Severity:
126126

127127

128128
class HawkularAlertsClient(HawkularBaseClient):
129-
def list_triggers(self, ids=[], tags=[]):
130-
ids = ','.join(ids)
129+
def list_triggers(self, tags=[]):
131130
tags = ','.join(tags)
132-
url = self._service_url('triggers', {'tags': tags, 'ids': ids})
131+
url = self._service_url('triggers', {'tags': tags})
133132
triggers_dict = self._get(url)
134133
return Trigger.list_to_object_list(triggers_dict)
135134

0 commit comments

Comments
 (0)