forked from p15670423/monkey
Agent: Add "options" parameter to IPuppet.ping()
This commit is contained in:
parent
c497962d9e
commit
8c47d113c3
|
@ -35,7 +35,7 @@ class IPuppet(metaclass=abc.ABCMeta):
|
|||
"""
|
||||
|
||||
@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
|
||||
:param str host: The domain name or IP address of a host
|
||||
|
|
|
@ -155,7 +155,7 @@ class MockPuppet(IPuppet):
|
|||
else:
|
||||
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})")
|
||||
if host == DOT_1:
|
||||
return (True, "windows")
|
||||
|
|
Loading…
Reference in New Issue