summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-30 15:59:59 +0200
committerGitHub <noreply@github.com>2019-07-30 15:59:59 +0200
commit4196a594521d89fa057602d9cb176726ee9db614 (patch)
tree4c635699dc19e34175f4443a20cacd9bdee099bf
parent040355d450aa7282071813c9517b50b901c9e497 (diff)
parent0b14e535902921a9de6e6571632219bb6327c621 (diff)
downloadpodman-4196a594521d89fa057602d9cb176726ee9db614.tar.gz
podman-4196a594521d89fa057602d9cb176726ee9db614.tar.bz2
podman-4196a594521d89fa057602d9cb176726ee9db614.zip
Merge pull request #3668 from TomSweeneyRedHat/dev/tsweeney/adderror
Touch up input argument error on create
-rw-r--r--cmd/podman/shared/create.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go
index 43b1b4067..4de68e4bc 100644
--- a/cmd/podman/shared/create.go
+++ b/cmd/podman/shared/create.go
@@ -80,6 +80,8 @@ func CreateContainer(ctx context.Context, c *GenericCLIResults, runtime *libpod.
name := ""
if len(c.InputArgs) != 0 {
name = c.InputArgs[0]
+ } else {
+ return nil, nil, errors.Errorf("error, no input arguments were provided")
}
newImage, err := runtime.ImageRuntime().New(ctx, name, rtc.SignaturePolicyPath, GetAuthFile(""), writer, nil, image.SigningOptions{}, false, nil)
if err != nil {