Skip to content

Commit 48c34be

Browse files
eric-desrocherspmoravec
authored andcommitted
[Policy] Fix os_release_name value
OS_RELEASE_NAME was previously matching PRETTY_NAME instead of the intended NAME identifier. This could cause incorrect OS validation and defaulting to the "Upstream Project:" instead. Adjusted the logic to correctly validate OS identifiers and prevent falling back to default unexpectedly. $ grep NAME /etc/os-release NAME="Azure Linux" PRETTY_NAME="Microsoft Azure Linux 3.0" Signed-off-by: Eric Desrochers <edesrochers@microsoft.com>
1 parent adb275c commit 48c34be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sos/policies/distros/azure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AzurePolicy(RedHatPolicy):
1717
vendor_urls = [
1818
('Distribution Website', 'https://github.com/microsoft/azurelinux')
1919
]
20-
os_release_name = 'Microsoft Azure Linux'
20+
os_release_name = 'Azure Linux'
2121
os_release_file = ''
2222

2323
def __init__(self, sysroot=None, init=None, probe_runtime=True,

0 commit comments

Comments
 (0)