From a79b579cdc221df0582e38cf9dcc492313253e1d Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Mon, 5 Sep 2022 12:40:56 +0200 Subject: [PATCH] Agent: Construct AutomatedMaster with list of servers --- monkey/infection_monkey/monkey.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index 966d27842..f8b523b66 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -154,7 +154,8 @@ class InfectionMonkey: logger.debug(f"Default server set to: {self._control_client.server_address}") else: raise Exception( - f"Failed to connect to the island via any known server address: {self._opts.servers}" + f"Failed to connect to the island via " + f"any known server address: {self._opts.servers}" ) self._control_client.wakeup(parent=self._opts.parent) @@ -219,6 +220,7 @@ class InfectionMonkey: self._master = AutomatedMaster( self._current_depth, + self._opts.servers, puppet, telemetry_messenger, victim_host_factory,