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

This commit is contained in:
VakarisZ 2020-10-01 15:15:27 +03:00
parent d618428ff8
commit 2356ea50f4
1 changed files with 1 additions and 0 deletions

View File

@ -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)