Agent: Rename variables in HostExploiter

This commit is contained in:
Shreya Malviya 2022-10-06 16:13:38 +05:30
parent 254b4e1c6c
commit e2453e481c
1 changed files with 4 additions and 4 deletions

View File

@ -27,12 +27,12 @@ class HostExploiter:
@property @property
@abstractmethod @abstractmethod
def _exploiter_tags(self) -> Tuple[str, ...]: def _EXPLOITER_TAGS(self) -> Tuple[str, ...]:
pass pass
@property @property
@abstractmethod @abstractmethod
def _propagation_tags(self) -> Tuple[str, ...]: def _PROPAGATION_TAGS(self) -> Tuple[str, ...]:
pass pass
def __init__(self): def __init__(self):
@ -153,7 +153,7 @@ class HostExploiter:
exploiter_name=self.__class__.__name__, exploiter_name=self.__class__.__name__,
error_message=error_message, error_message=error_message,
timestamp=time, timestamp=time,
tags=frozenset(tags or self._exploiter_tags), tags=frozenset(tags or self._EXPLOITER_TAGS),
) )
self.agent_event_queue.publish(exploitation_event) self.agent_event_queue.publish(exploitation_event)
@ -171,6 +171,6 @@ class HostExploiter:
exploiter_name=self.__class__.__name__, exploiter_name=self.__class__.__name__,
error_message=error_message, error_message=error_message,
timestamp=time, timestamp=time,
tags=frozenset(tags or self._propagation_tags), tags=frozenset(tags or self._PROPAGATION_TAGS),
) )
self.agent_event_queue.publish(propagation_event) self.agent_event_queue.publish(propagation_event)