From bbcac3217200a5deee22fd76bfdd4811be5e9372 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Mon, 13 Jun 2022 18:30:48 +0200 Subject: [PATCH] Agent: Remove unused control channel from build_master --- monkey/infection_monkey/master/control_channel.py | 1 - monkey/infection_monkey/monkey.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/monkey/infection_monkey/master/control_channel.py b/monkey/infection_monkey/master/control_channel.py index 0834f28f7..c93af43e0 100644 --- a/monkey/infection_monkey/master/control_channel.py +++ b/monkey/infection_monkey/master/control_channel.py @@ -5,7 +5,6 @@ from typing import Mapping import requests from common.common_consts.timeouts import SHORT_REQUEST_TIMEOUT -from infection_monkey.control import ControlClient from infection_monkey.custom_types import PropagationCredentials from infection_monkey.i_control_channel import IControlChannel, IslandCommunicationError diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index e3eafddce..436b36f67 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -185,7 +185,6 @@ class InfectionMonkey: control_channel = ControlChannel( self._control_client.server_address, GUID, self._control_client.proxies ) - control_client = self._control_client credentials_store = AggregatingCredentialsStore(control_channel) puppet = self._build_puppet(credentials_store) @@ -207,7 +206,6 @@ class InfectionMonkey: control_channel, local_network_interfaces, credentials_store, - control_client, ) @staticmethod