From 2eb1691030324244df6ac56169299d947bdf2588 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 24 Jun 2022 07:34:10 -0400 Subject: [PATCH] Agent: Use operating_system.value in _download_binary_from_island() --- monkey/infection_monkey/exploit/caching_agent_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/exploit/caching_agent_repository.py b/monkey/infection_monkey/exploit/caching_agent_repository.py index 499e8401c..7d3580258 100644 --- a/monkey/infection_monkey/exploit/caching_agent_repository.py +++ b/monkey/infection_monkey/exploit/caching_agent_repository.py @@ -35,7 +35,7 @@ class CachingAgentRepository(IAgentRepository): @lru_cache(maxsize=None) def _download_binary_from_island(self, operating_system: OperatingSystems) -> bytes: - os_name = operating_system.name.lower() + os_name = operating_system.value response = requests.get( # noqa: DUO123 f"{self._island_url}/api/agent-binaries/{os_name}",