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:
Christian Kellner 2020-10-20 17:54:41 +02:00 committed by David Rheinsberg
parent 807090f4c8
commit e919f66609

View file

@ -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