diff --git a/monkey/infection_monkey/exploit/HostExploiter.py b/monkey/infection_monkey/exploit/HostExploiter.py index c584cf828..f3c69f061 100644 --- a/monkey/infection_monkey/exploit/HostExploiter.py +++ b/monkey/infection_monkey/exploit/HostExploiter.py @@ -27,12 +27,12 @@ class HostExploiter: @property @abstractmethod - def _exploiter_tags(self) -> Tuple[str, ...]: + def _EXPLOITER_TAGS(self) -> Tuple[str, ...]: pass @property @abstractmethod - def _propagation_tags(self) -> Tuple[str, ...]: + def _PROPAGATION_TAGS(self) -> Tuple[str, ...]: pass def __init__(self): @@ -153,7 +153,7 @@ class HostExploiter: exploiter_name=self.__class__.__name__, error_message=error_message, timestamp=time, - tags=frozenset(tags or self._exploiter_tags), + tags=frozenset(tags or self._EXPLOITER_TAGS), ) self.agent_event_queue.publish(exploitation_event) @@ -171,6 +171,6 @@ class HostExploiter: exploiter_name=self.__class__.__name__, error_message=error_message, timestamp=time, - tags=frozenset(tags or self._propagation_tags), + tags=frozenset(tags or self._PROPAGATION_TAGS), ) self.agent_event_queue.publish(propagation_event)