Skip to content

Commit

Permalink
Use platform to get vmarch
Browse files Browse the repository at this point in the history
  • Loading branch information
maddieford committed May 12, 2023
1 parent 1ff01cb commit 2913fb5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions azurelinuxagent/ga/update.py
Expand Up @@ -19,6 +19,7 @@
import glob
import json
import os
import platform
import re
import shutil
import signal
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2913fb5

Please sign in to comment.