Skip to content

Commit

Permalink
Delete all interactive rules if any. (#81)
Browse files Browse the repository at this point in the history
* Delete all interactive rules if any.

* Bump version.
  • Loading branch information
maximelb committed Jan 22, 2023
1 parent 73ceb3d commit 7865fb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lcservice/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Reference implementation for LimaCharlie.io services."""

__version__ = "1.9.4"
__version__ = "1.9.5"
__author__ = "Maxime Lamothe-Brassard ( Refraction Point, Inc )"
__author_email__ = "maxime@refractionpoint.com"
__license__ = "Apache v2"
Expand Down
10 changes: 5 additions & 5 deletions lcservice/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,11 +816,11 @@ def _applyInteractiveRule( self, lc ):
sync.pushRules( rules )

def _removeInteractiveRule( self, lc ):
ns = list(self._interactiveRule.values())[0].get( 'namespace', None )
try:
lc.del_rule( self._rootInvestigationId, namespace = ns )
except:
self.logCritical( traceback.format_exc() )
for ruleName, rule in self._interactiveRule.items():
try:
lc.del_rule( ruleName, namespace = rule.get( 'namespace', None ) )
except:
self.logCritical( traceback.format_exc() )

def wrapSdk( self, *args, **kwargs ):
this = self
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

__version__ = "1.9.4"
__version__ = "1.9.5"
__author__ = "Maxime Lamothe-Brassard ( Refraction Point, Inc )"
__author_email__ = "maxime@refractionpoint.com"
__license__ = "Apache v2"
Expand Down

0 comments on commit 7865fb0

Please sign in to comment.