Skip to content

Commit 3cf888f

Browse files
authored
Add support for redhat 10 and redhat 9 aarch64 (#2116)
* add support for redhat distros * remove duplicate redhat references
1 parent b3e9a69 commit 3cf888f

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

AzureMonitorAgent/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,7 @@ def find_vm_distro(operation):
25112511
log_and_exit(operation, IndeterminateOperatingSystem, error_msg)
25122512

25132513
# Normalize distribution names
2514-
if vm_dist == 'rhel':
2514+
if vm_dist == 'rhel' or vm_dist == 'red hat':
25152515
vm_dist = 'redhat'
25162516
elif vm_dist == 'ol':
25172517
vm_dist = 'oracle'

AzureMonitorAgent/ama_tst/modules/install/supported_distros.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
supported_dists_x86_64 = {'redhat' : ['7', '8', '9'], # Rhel
2-
'rhel' : ['7', '8', '9'], # Rhel
1+
supported_dists_x86_64 = {'redhat' : ['7', '8', '9', '10'], # Rhel
32
'centos' : ['7', '8'], # CentOS
4-
'red hat' : ['7', '8', '9'], # Oracle, RHEL
53
'oracle' : ['7', '8', '9'], # Oracle
64
'ol' : ['7', '8', '9'], # Oracle Linux
75
'debian' : ['9', '10', '11', '12'], # Debian
@@ -15,8 +13,7 @@
1513
'amzn' : ['2', '2023'] # Amazon Linux 2
1614
}
1715

18-
supported_dists_aarch64 = {'red hat' : ['8'], # Rhel
19-
'redhat' : ['8'], # Rhel
16+
supported_dists_aarch64 = {'redhat' : ['8', '9', '10'], # Rhel
2017
'ubuntu' : ['18.04', '20.04', '22.04', '24.04'], # Ubuntu
2118
'alma' : ['8'], # Alma
2219
'centos' : ['7'], # CentOS

0 commit comments

Comments
 (0)