Agent: Add TODOs to AutomatedMaster

This commit is contained in:
Mike Salvatore 2022-03-07 06:20:34 -05:00
parent 754402c69d
commit 00829ac094
2 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,7 @@ class AutomatedMaster(IMaster):
interrupted_message = f"Received a stop signal, skipping remaining {plugin_type}s"
for p in interruptable_iter(plugins, self._stop, interrupted_message):
# TODO: Catch exceptions to prevent thread from crashing
callback(p)
logger.info(f"Finished running {plugin_type}s")

View File

@ -58,6 +58,7 @@ class IPScanner:
address = addresses.get_nowait()
logger.info(f"Scanning {address.ip}")
# TODO: Catch exceptions to prevent thread from crashing
ping_scan_data = self._puppet.ping(address.ip, icmp_timeout)
port_scan_data = self._puppet.scan_tcp_ports(address.ip, tcp_ports, tcp_timeout)