forked from p15670423/monkey
Agent: Fix incorrect host arch identification in PowerShellClient
This commit is contained in:
parent
1a1a130716
commit
71c4e4d8dc
|
@ -85,8 +85,8 @@ class PowerShellClient(IPowerShellClient):
|
||||||
return output
|
return output
|
||||||
|
|
||||||
def get_host_architecture(self) -> Union[WIN_ARCH_32, WIN_ARCH_64]:
|
def get_host_architecture(self) -> Union[WIN_ARCH_32, WIN_ARCH_64]:
|
||||||
output = self._client.execute_cmd(GET_ARCH_WINDOWS)
|
stdout, _, _ = self._client.execute_cmd(GET_ARCH_WINDOWS)
|
||||||
if "64-bit" in output:
|
if "64-bit" in stdout:
|
||||||
return WIN_ARCH_64
|
return WIN_ARCH_64
|
||||||
|
|
||||||
return WIN_ARCH_32
|
return WIN_ARCH_32
|
||||||
|
|
Loading…
Reference in New Issue