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 container name prefix for a given image only needs to
happen as part of resolving the final Toolbox container name from the
given command line and configuration options.

Fallout from c990fb4

containers#937
  • Loading branch information
debarshiray committed Aug 31, 2022
1 parent 51dd511 commit 55a5a77
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 @@ -228,7 +228,7 @@ func GetCgroupsVersion() (int, error) {
return version, nil
}

func GetContainerNamePrefixForImage(image string) (string, error) {
func getContainerNamePrefixForImage(image string) (string, error) {
basename := ImageReferenceGetBasename(image)
if basename == "" {
return "", fmt.Errorf("failed to get the basename of image %s", image)
Expand Down Expand Up @@ -754,7 +754,7 @@ func ResolveContainerAndImageNames(container, distroCLI, imageCLI, releaseCLI st

if container == "" {
var err error
container, err = GetContainerNamePrefixForImage(image)
container, err = getContainerNamePrefixForImage(image)
if err != nil {
return "", "", "", err
}
Expand Down

0 comments on commit 55a5a77

Please sign in to comment.