From feb8288c98629b0f4a10f54c006843e11ebd4dfb Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 23 Sep 2022 11:25:08 -0400 Subject: [PATCH] Agent: Pass the correct agent ID to ControlChannel --- monkey/infection_monkey/monkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index b5c20fd76..3db3cb856 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -123,7 +123,7 @@ class InfectionMonkey: self._control_client = ControlClient( server_address=server, island_api_client=self._island_api_client ) - self._control_channel = ControlChannel(server, GUID, self._island_api_client) + self._control_channel = ControlChannel(server, get_agent_id(), self._island_api_client) self._register_agent(server) # TODO Refactor the telemetry messengers to accept control client