Skip to content

Commit

Permalink
Fix check for suse/sles distros (Azure#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
aswatt committed Aug 11, 2023
1 parent 1f70831 commit c70df43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AzureMonitorAgent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def install():
# Based on Task 9764411: AMA broken after 1.7 in sles 12 - https://dev.azure.com/msazure/One/_workitems/edit/9764411
if exit_code == 0:
vm_dist, _ = find_vm_distro('Install')
if vm_dist.startswith('suse'):
if (vm_dist.startswith('suse') or vm_dist.startswith('sles')):
try:
suse_exit_code, suse_output = run_command_and_log("mkdir -p /etc/systemd/system/azuremonitoragent.service.d")
if suse_exit_code != 0:
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def is_vm_supported_for_extension(operation):
'ol' : ['7', '8', '9'], # Oracle Linux
'debian' : ['9', '10', '11'], # Debian
'ubuntu' : ['16.04', '18.04', '20.04', '22.04'], # Ubuntu
'suse' : ['12'], 'sles' : ['15'], # SLES
'suse' : ['12', '15'], 'sles' : ['12', '15'], # SLES
'cbl-mariner' : ['1'], # Mariner 1.0
'mariner' : ['2'], # Mariner 2.0
'rocky' : ['8', '9'], # Rocky
Expand Down

0 comments on commit c70df43

Please sign in to comment.