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 <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2020-04-29 11:42:36 +02:00
parent 3e912f711b
commit 854293a59a

View File

@ -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]