mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
Merge pull request #3668 from TomSweeneyRedHat/dev/tsweeney/adderror
Touch up input argument error on create
This commit is contained in:
commit
4196a59452
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue