From 854293a59ae9fcf78e539f84ef1ebf7952ef925f Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 29 Apr 2020 11:42:36 +0200 Subject: push: fix push with one argument When doing a `podman push $IMG`, $IMG acts as the source and the destination. Signed-off-by: Valentin Rothberg --- cmd/podman/images/push.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go index ef2ffd0d7..92a08255c 100644 --- a/cmd/podman/images/push.go +++ b/cmd/podman/images/push.go @@ -98,6 +98,7 @@ func imagePush(cmd *cobra.Command, args []string) error { switch len(args) { case 1: source = args[0] + destination = args[0] case 2: source = args[0] destination = args[1] -- cgit v1.2.3-54-g00ecf