Agent: Remove no longer needed `island_url` parameter from CachingAgentBinaryRepository

This commit is contained in:
Shreya Malviya 2022-09-20 14:59:35 +05:30
parent 1355c038b5
commit e23c6de745
2 changed files with 1 additions and 3 deletions

View File

@ -15,8 +15,7 @@ class CachingAgentBinaryRepository(IAgentBinaryRepository):
request is actually sent to the island for each requested binary.
"""
def __init__(self, island_url: str, island_api_client: IIslandAPIClient):
self._island_url = island_url
def __init__(self, island_api_client: IIslandAPIClient):
self._lock = threading.Lock()
self._island_api_client = island_api_client

View File

@ -315,7 +315,6 @@ class InfectionMonkey:
puppet.load_plugin("ssh", SSHFingerprinter(), PluginType.FINGERPRINTER)
agent_binary_repository = CachingAgentBinaryRepository(
island_url=f"https://{self._control_client.server_address}",
island_api_client=self.island_api_client,
)
exploit_wrapper = ExploiterWrapper(