Commit 48c34be
[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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments