forked from p15670423/monkey
Agent: Use operating_system.value in _download_binary_from_island()
This commit is contained in:
parent
858eb2302c
commit
2eb1691030
|
@ -35,7 +35,7 @@ class CachingAgentRepository(IAgentRepository):
|
||||||
|
|
||||||
@lru_cache(maxsize=None)
|
@lru_cache(maxsize=None)
|
||||||
def _download_binary_from_island(self, operating_system: OperatingSystems) -> bytes:
|
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
|
response = requests.get( # noqa: DUO123
|
||||||
f"{self._island_url}/api/agent-binaries/{os_name}",
|
f"{self._island_url}/api/agent-binaries/{os_name}",
|
||||||
|
|
Loading…
Reference in New Issue