Skip to content

Commit

Permalink
Revert "pkg/utils: Use global default instead of magic value"
Browse files Browse the repository at this point in the history
This reverts commit 5c8ad7a.

containers#937
  • Loading branch information
debarshiray committed Jul 31, 2022
1 parent 4469774 commit cb766a2
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 = distroDefault
distro = "fedora"
}

distroObj, supportedDistro := supportedDistros[distro]
Expand Down Expand Up @@ -647,7 +647,7 @@ func ParseRelease(distro, release string) (string, error) {
}

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

distroObj, supportedDistro := supportedDistros[distro]
Expand Down

0 comments on commit cb766a2

Please sign in to comment.