mirror of https://github.com/containers/podman.git
pullImage does not need to be exported
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
2c9c7273ca
commit
e5ee0bb5f3
|
@ -63,7 +63,7 @@ func clone(cmd *cobra.Command, args []string) error {
|
|||
ctrClone.Image = args[2]
|
||||
if !cliVals.RootFS {
|
||||
rawImageName := args[0]
|
||||
name, err := PullImage(ctrClone.Image, &ctrClone.CreateOpts)
|
||||
name, err := pullImage(ctrClone.Image, &ctrClone.CreateOpts)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@ func create(cmd *cobra.Command, args []string) error {
|
|||
rawImageName := ""
|
||||
if !cliVals.RootFS {
|
||||
rawImageName = args[0]
|
||||
name, err := PullImage(args[0], &cliVals)
|
||||
name, err := pullImage(args[0], &cliVals)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -336,7 +336,7 @@ func CreateInit(c *cobra.Command, vals entities.ContainerCreateOptions, isInfra
|
|||
}
|
||||
|
||||
// Pulls image if any also parses and populates OS, Arch and Variant in specified container create options
|
||||
func PullImage(imageName string, cliVals *entities.ContainerCreateOptions) (string, error) {
|
||||
func pullImage(imageName string, cliVals *entities.ContainerCreateOptions) (string, error) {
|
||||
pullPolicy, err := config.ParsePullPolicy(cliVals.Pull)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
|
@ -150,7 +150,7 @@ func run(cmd *cobra.Command, args []string) error {
|
|||
rawImageName := ""
|
||||
if !cliVals.RootFS {
|
||||
rawImageName = args[0]
|
||||
name, err := PullImage(args[0], &cliVals)
|
||||
name, err := pullImage(args[0], &cliVals)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue