From f68d253f1b3ef6cbfc3cefdac2bd32a78cec948e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20M=C3=ADchal?= Date: Sun, 9 Jan 2022 16:54:41 +0200 Subject: [PATCH] pkg/utils: Use global default instead of magic value Found while working on https://github.com/containers/toolbox/issues/937 https://github.com/containers/toolbox/pull/977 --- src/pkg/utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/utils/utils.go b/src/pkg/utils/utils.go index ce77df782..4edbee6fb 100644 --- a/src/pkg/utils/utils.go +++ b/src/pkg/utils/utils.go @@ -250,7 +250,7 @@ func GetContainerNamePrefixForImage(image string) (string, error) { func getDefaultImageForDistro(distro, release string) string { if !IsDistroSupported(distro) { - distro = "fedora" + distro = distroDefault } distroObj, supportedDistro := supportedDistros[distro] @@ -647,7 +647,7 @@ func ParseRelease(distro, release string) (string, error) { } if !IsDistroSupported(distro) { - distro = "fedora" + distro = distroDefault } distroObj, supportedDistro := supportedDistros[distro]