Skip to content

Commit

Permalink
pkg/utils: Mark a private function as such
Browse files Browse the repository at this point in the history
Figuring out the default toolbox image for a given distribution only
needs to happen as part of resolving the final toolbox image name from
the given command line options.

Fallout from c990fb4

containers#828
containers#851
  • Loading branch information
debarshiray committed Jul 23, 2021
1 parent b0beb68 commit 6a37695
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 @@ -285,7 +285,7 @@ func GetContainerNamePrefixForImage(image string) (string, error) {
return basename, nil
}

func GetDefaultImageForDistro(distro, release string) string {
func getDefaultImageForDistro(distro, release string) string {
if _, supportedDistro := supportedDistros[distro]; !supportedDistro {
distro = "fedora"
}
Expand Down Expand Up @@ -712,7 +712,7 @@ func ResolveImageName(distro, image, release string) (string, string, error) {
}

if image == "" {
image = GetDefaultImageForDistro(distro, release)
image = getDefaultImageForDistro(distro, release)
} else {
release = ImageReferenceGetTag(image)
if release == "" {
Expand Down

0 comments on commit 6a37695

Please sign in to comment.