Agent: Remove started_on_island logic

This commit is contained in:
Shreya Malviya 2021-12-08 21:19:24 +05:30
parent 2d73aeaac6
commit 71344bcab0
2 changed files with 0 additions and 10 deletions

View File

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

View File

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