Agent: Use operating_system.value in _download_binary_from_island()

This commit is contained in:
Mike Salvatore 2022-06-24 07:34:10 -04:00
parent 858eb2302c
commit 2eb1691030
1 changed files with 1 additions and 1 deletions

View File

@ -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}",