aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images/load.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-06-23 11:17:42 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-06-23 14:53:29 +0200
commit138d447eb450f02d78225d7a976faf9262423380 (patch)
treeb747122bca88a001348513db751ec34f7e851910 /cmd/podman/images/load.go
parent9e37fd43e47d32d5bfbc920c6d7aedfad5662ae0 (diff)
downloadpodman-138d447eb450f02d78225d7a976faf9262423380.tar.gz
podman-138d447eb450f02d78225d7a976faf9262423380.tar.bz2
podman-138d447eb450f02d78225d7a976faf9262423380.zip
image load: no args required
Disable the args requirement of `image load`. Instead of requiring a lower bound, we really need an upper one with at most 1 argument. Extend the system tests to prevent future regressions. Fixes: #6718 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'cmd/podman/images/load.go')
-rw-r--r--cmd/podman/images/load.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/load.go b/cmd/podman/images/load.go
index a984ad81f..115e9a070 100644
--- a/cmd/podman/images/load.go
+++ b/cmd/podman/images/load.go
@@ -30,7 +30,7 @@ var (
}
imageLoadCommand = &cobra.Command{
- Args: cobra.MinimumNArgs(1),
+ Args: loadCommand.Args,
Use: loadCommand.Use,
Short: loadCommand.Short,
Long: loadCommand.Long,