aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/load.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/load.go')
-rw-r--r--cmd/podman/load.go8
1 files 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 {