Agent: Add "options" parameter to IPuppet.ping()

This commit is contained in:
Mike Salvatore 2021-12-08 15:45:46 -05:00
parent c497962d9e
commit 8c47d113c3
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class IPuppet(metaclass=abc.ABCMeta):
""" """
@abc.abstractmethod @abc.abstractmethod
def ping(self, host: str) -> Tuple[bool, Optional[str]]: def ping(self, host: str, options: Dict) -> Tuple[bool, Optional[str]]:
""" """
Sends a ping (ICMP packet) to a remote host Sends a ping (ICMP packet) to a remote host
:param str host: The domain name or IP address of a host :param str host: The domain name or IP address of a host

View File

@ -155,7 +155,7 @@ class MockPuppet(IPuppet):
else: else:
return PostBreachData("pba command 2", ["pba result 2", False]) return PostBreachData("pba command 2", ["pba result 2", False])
def ping(self, host: str) -> Tuple[bool, Optional[str]]: def ping(self, host: str, options: Dict) -> Tuple[bool, Optional[str]]:
logger.debug(f"run_ping({host})") logger.debug(f"run_ping({host})")
if host == DOT_1: if host == DOT_1:
return (True, "windows") return (True, "windows")