Skip to content

Commit d13df7a

Browse files
committed
pkg/utils: Use global default instead of magic value
Found while working on #937 #977
1 parent c342a23 commit d13df7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkg/utils/utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func GetContainerNamePrefixForImage(image string) (string, error) {
250250

251251
func getDefaultImageForDistro(distro, release string) string {
252252
if !IsDistroSupported(distro) {
253-
distro = "fedora"
253+
distro = distroDefault
254254
}
255255

256256
distroObj, supportedDistro := supportedDistros[distro]
@@ -647,7 +647,7 @@ func ParseRelease(distro, release string) (string, error) {
647647
}
648648

649649
if !IsDistroSupported(distro) {
650-
distro = "fedora"
650+
distro = distroDefault
651651
}
652652

653653
distroObj, supportedDistro := supportedDistros[distro]

0 commit comments

Comments
 (0)