mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-05 17:32:09 +01:00
dev-lang/python-oem: hardcode distname to coreos
This is needed because the Azure agent uses the distro's name instead of the ID for determining how it should behave. Once their code is updated, they will correctly read the ID, making this patch no longer necessary.
This commit is contained in:
parent
4024a1b32b
commit
1d128368fd
@ -68,7 +68,7 @@ diff -r 12bf7fc1ba76 Lib/platform.py
|
||||
+ os_release_info = _parse_os_release()
|
||||
+ if os_release_info is not None:
|
||||
+ if 'NAME' in os_release_info:
|
||||
+ distname = os_release_info['NAME']
|
||||
+ distname = "CoreOS"
|
||||
+ if 'VERSION_ID' in os_release_info:
|
||||
+ version = os_release_info['VERSION_ID']
|
||||
+ if 'ID' in os_release_info:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user