From 04f3a9079c5dac0f88ce19c22a7f8761334fee90 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Sat, 28 Jul 2018 07:58:46 +0200 Subject: Rename the "image" variable to "imageName" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... so that it does not shadow the libpod/image module. Should not change behavior. Signed-off-by: Miloslav Trmač Closes: #1176 Approved by: rhatdan --- cmd/podman/load.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/podman/load.go b/cmd/podman/load.go index 565b09184..fd3b317b7 100644 --- a/cmd/podman/load.go +++ b/cmd/podman/load.go @@ -45,10 +45,10 @@ var ( func loadCmd(c *cli.Context) error { args := c.Args() - var image string + var imageName string if len(args) == 1 { - image = args[0] + imageName = args[0] } if len(args) > 1 { return errors.New("too many arguments. Requires exactly 1") @@ -109,8 +109,8 @@ func loadCmd(c *cli.Context) error { if err != nil { // generate full src name with specified image:tag fullSrc := libpod.OCIArchive + ":" + input - if image != "" { - fullSrc = fullSrc + ":" + image + if imageName != "" { + fullSrc = fullSrc + ":" + imageName } newImages, err = runtime.ImageRuntime().LoadFromArchive(ctx, fullSrc, c.String("signature-policy"), writer) if err != nil { -- cgit v1.2.3-54-g00ecf