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:
parent
3e912f711b
commit
854293a59a
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue