Merge pull request #3668 from TomSweeneyRedHat/dev/tsweeney/adderror

Touch up input argument error on create
This commit is contained in:
OpenShift Merge Robot 2019-07-30 15:59:59 +02:00 committed by GitHub
commit 4196a59452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {