From 2356ea50f45ec99f19c20a7e98a8d131d90371ec Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 1 Oct 2020 15:15:27 +0300 Subject: [PATCH] Fixed a bug, where monkey config did not get set to "on_island" immediatelly, so any further monkey code could not rely on this value --- monkey/infection_monkey/monkey.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index a15a06edf..23c94a7f9 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -126,6 +126,7 @@ class InfectionMonkey(object): self.shutdown_by_not_alive_config() if self.is_started_on_island(): + WormConfiguration.started_on_island = True ControlClient.report_start_on_island() ControlClient.should_monkey_run(self._opts.vulnerable_port)