From 71344bcab0e41b11aaa860b9a06118be5773b747 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 8 Dec 2021 21:19:24 +0530 Subject: [PATCH] Agent: Remove started_on_island logic --- monkey/infection_monkey/config.py | 1 - monkey/infection_monkey/control.py | 9 --------- 2 files changed, 10 deletions(-) diff --git a/monkey/infection_monkey/config.py b/monkey/infection_monkey/config.py index 8f4984ba6..1b1ab6612 100644 --- a/monkey/infection_monkey/config.py +++ b/monkey/infection_monkey/config.py @@ -112,7 +112,6 @@ class Configuration(object): # depth of propagation depth = 2 max_depth = None - started_on_island = False current_server = "" # Configuration servers to try to connect to, in this order. diff --git a/monkey/infection_monkey/control.py b/monkey/infection_monkey/control.py index 71e1fb8f0..c4b4b9555 100644 --- a/monkey/infection_monkey/control.py +++ b/monkey/infection_monkey/control.py @@ -401,12 +401,3 @@ class ControlClient(object): ) except requests.exceptions.RequestException: return False - - @staticmethod - def report_start_on_island(): - requests.post( # noqa: DUO123 - f"https://{WormConfiguration.current_server}/api/monkey_control/started_on_island", - data=json.dumps({"started_on_island": True}), - verify=False, - timeout=MEDIUM_REQUEST_TIMEOUT, - )