diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-02-19 23:06:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 23:06:59 +0100 |
commit | 3b88c7350726f5a019f989a1ab7e5046917f2f79 (patch) | |
tree | f477b13822d2cba785488b3e93e508960a4ed830 | |
parent | 82ae36c15726a4adb3242938ed2396be30bd479a (diff) | |
parent | 91ae38092bcd3ace67a6681ed0f4d2fc1e2b8c65 (diff) | |
download | podman-3b88c7350726f5a019f989a1ab7e5046917f2f79.tar.gz podman-3b88c7350726f5a019f989a1ab7e5046917f2f79.tar.bz2 podman-3b88c7350726f5a019f989a1ab7e5046917f2f79.zip |
Merge pull request #2373 from mheon/pod_has_no_arguments
Podman pod create now errors on receiving CLI args
-rw-r--r-- | cmd/podman/pod_create.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go index 0a0b86aab..d5ca5e13a 100644 --- a/cmd/podman/pod_create.go +++ b/cmd/podman/pod_create.go @@ -59,6 +59,10 @@ func podCreateCmd(c *cliconfig.PodCreateValues) error { var options []libpod.PodCreateOption var err error + if len(c.InputArgs) > 0 { + return errors.New("podman pod create does not accept any arguments") + } + runtime, err := libpodruntime.GetRuntime(&c.PodmanCommand) if err != nil { return errors.Wrapf(err, "error creating libpod runtime") |