forked from p15670423/monkey
Agent: Add TODOs to AutomatedMaster
This commit is contained in:
parent
754402c69d
commit
00829ac094
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue