diff options
-rw-r--r-- | cmd/podman/push.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/push.go b/cmd/podman/push.go index 272c49e32..94af93407 100644 --- a/cmd/podman/push.go +++ b/cmd/podman/push.go @@ -84,10 +84,10 @@ func pushCmd(c *cli.Context) error { ) args := c.Args() - srcName := args[0] if len(args) == 0 || len(args) > 2 { return errors.New("podman push requires at least one image name, and optionally a second to specify a different destination name") } + srcName := args[0] switch len(args) { case 1: destName = args[0] |