Skip to content

Commit

Permalink
feat(helper.py): Add promisc to subscribe_filters
Browse files Browse the repository at this point in the history
Add support of promisc flag to subscribe_filters
helper function. Will be used in kcidb-bridge, to
listen for all users events.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Jan 29, 2025
1 parent f04f569 commit ad230e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernelci/api/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ def api(self):
"""API object"""
return self._api

def subscribe_filters(self, filters=None, channel='node'):
def subscribe_filters(self, filters=None, channel='node',
promiscuous=False):
"""Subscribe to a channel with some added filters"""
sub_id = self.api.subscribe(channel)
sub_id = self.api.subscribe(channel, promiscuous)
self._filters[sub_id] = filters
return sub_id

Expand Down

0 comments on commit ad230e5

Please sign in to comment.