summaryrefslogtreecommitdiff
path: root/cmd/podman/generate_kube.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-18 14:01:43 -0700
committerGitHub <noreply@github.com>2019-03-18 14:01:43 -0700
commit07e10d9dd6c0c0828637f770234266daa182fc95 (patch)
tree9638b5fa9777681a51f93baae5a61042a2045c74 /cmd/podman/generate_kube.go
parent41019f747280ba2c47df2ce6f83ddebfc2000745 (diff)
parentabf3500e8f672e71c6e91fd5bbb70da6abd4d5af (diff)
downloadpodman-07e10d9dd6c0c0828637f770234266daa182fc95.tar.gz
podman-07e10d9dd6c0c0828637f770234266daa182fc95.tar.bz2
podman-07e10d9dd6c0c0828637f770234266daa182fc95.zip
Merge pull request #2700 from edsantiago/podman_umount_args
podman umount: error out if called with no args
Diffstat (limited to 'cmd/podman/generate_kube.go')
-rw-r--r--cmd/podman/generate_kube.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/generate_kube.go b/cmd/podman/generate_kube.go
index e3db14af3..42cfba8d8 100644
--- a/cmd/podman/generate_kube.go
+++ b/cmd/podman/generate_kube.go
@@ -57,8 +57,8 @@ func generateKubeYAMLCmd(c *cliconfig.GenerateKubeValues) error {
return errors.Wrapf(libpod.ErrNotImplemented, "rootless users")
}
args := c.InputArgs
- if len(args) > 1 || (len(args) < 1 && !c.Bool("latest")) {
- return errors.Errorf("you must provide one container|pod ID or name or --latest")
+ if len(args) != 1 {
+ return errors.Errorf("you must provide exactly one container|pod ID or name")
}
runtime, err := libpodruntime.GetRuntime(&c.PodmanCommand)