Agent: Remove started_on_island logic
This commit is contained in:
parent
2d73aeaac6
commit
71344bcab0
|
@ -112,7 +112,6 @@ class Configuration(object):
|
||||||
# depth of propagation
|
# depth of propagation
|
||||||
depth = 2
|
depth = 2
|
||||||
max_depth = None
|
max_depth = None
|
||||||
started_on_island = False
|
|
||||||
current_server = ""
|
current_server = ""
|
||||||
|
|
||||||
# Configuration servers to try to connect to, in this order.
|
# Configuration servers to try to connect to, in this order.
|
||||||
|
|
|
@ -401,12 +401,3 @@ class ControlClient(object):
|
||||||
)
|
)
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException:
|
||||||
return False
|
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,
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in New Issue