Agent: Fix PBA return value

This commit is contained in:
Shreya Malviya 2021-11-24 13:47:33 +05:30
parent d0b9fca4d7
commit e00fd64530
1 changed files with 2 additions and 2 deletions

View File

@ -151,9 +151,9 @@ class MockPuppet(IPuppet):
logger.debug(f"run_pba({name}, {options})") logger.debug(f"run_pba({name}, {options})")
if name == "AccountDiscovery": if name == "AccountDiscovery":
return PostBreachData("pba command 1", "pba result 1") return PostBreachData("pba command 1", ["pba result 1", True])
else: else:
return PostBreachData("pba command 2", "pba result 2") return PostBreachData("pba command 2", ["pba result 2", False])
def ping(self, host: str) -> Tuple[bool, Optional[str]]: def ping(self, host: str) -> Tuple[bool, Optional[str]]:
logger.debug(f"run_ping({host})") logger.debug(f"run_ping({host})")