mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
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:
@ -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]
|
||||
|
Reference in New Issue
Block a user