diff --git a/azurelinuxagent/ga/update.py b/azurelinuxagent/ga/update.py index 864d187632..2b0975b05b 100644 --- a/azurelinuxagent/ga/update.py +++ b/azurelinuxagent/ga/update.py @@ -19,6 +19,7 @@ import glob import json import os +import platform import re import shutil import signal @@ -463,12 +464,7 @@ def _get_vm_size(self, protocol): return self._vm_size def _get_vm_arch(self): - status,output = shellutil.run_get_output('python3 -c \'import platform; print(platform.machine())\'') - - if status != 0: - return "unknown arch" - - return output + return platform.machine() def _check_daemon_running(self, debug): # Check that the parent process (the agent's daemon) is still running