mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
Merge pull request #3668 from TomSweeneyRedHat/dev/tsweeney/adderror
Touch up input argument error on create
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user