forked from p34709852/monkey
BB: Add error message when machine is missing interfaces
This commit is contained in:
parent
378e8d55ff
commit
d922d71081
|
@ -50,6 +50,7 @@ class MonkeyLogsDownloader(object):
|
|||
try:
|
||||
machine_ip = machines[agent.machine_id].network_interfaces[0].ip
|
||||
except IndexError:
|
||||
LOGGER.error(f"Machine with ID {agent.machine_id} has no network interfaces")
|
||||
machine_ip = "UNKNOWN"
|
||||
|
||||
start_time = agent.start_time.strftime("%Y-%m-%d_%H-%M-%S")
|
||||
|
|
Loading…
Reference in New Issue