Skip to content

Commit

Permalink
pkg/utils: Use global default instead of magic value
Browse files Browse the repository at this point in the history
Found while working on containers#937

containers#977
  • Loading branch information
HarryMichal committed Feb 21, 2022
1 parent 02f45fd commit 5c8ad7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -647,7 +647,7 @@ func ParseRelease(distro, release string) (string, error) {
}

if !IsDistroSupported(distro) {
distro = "fedora"
distro = distroDefault
}

distroObj, supportedDistro := supportedDistros[distro]
Expand Down

0 comments on commit 5c8ad7a

Please sign in to comment.