Agent: Fix incorrect host arch identification in PowerShellClient

This commit is contained in:
Mike Salvatore 2021-09-02 14:04:40 -04:00
parent 1a1a130716
commit 71c4e4d8dc
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ class PowerShellClient(IPowerShellClient):
return output
def get_host_architecture(self) -> Union[WIN_ARCH_32, WIN_ARCH_64]:
output = self._client.execute_cmd(GET_ARCH_WINDOWS)
if "64-bit" in output:
stdout, _, _ = self._client.execute_cmd(GET_ARCH_WINDOWS)
if "64-bit" in stdout:
return WIN_ARCH_64
return WIN_ARCH_32