pipeline: use osrelease.DEFAULT_PATHS
Use the newly defined constant that contains the well known paths for where to look for `os-release` file.
This commit is contained in:
parent
807090f4c8
commit
e919f66609
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ class Pipeline:
|
|||
|
||||
def detect_host_runner():
|
||||
"""Use os-release(5) to detect the runner for the host"""
|
||||
osname = osrelease.describe_os("/etc/os-release", "/usr/lib/os-release")
|
||||
osname = osrelease.describe_os(*osrelease.DEFAULT_PATHS)
|
||||
return "org.osbuild." + osname
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue