mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +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 := ""
|
name := ""
|
||||||
if len(c.InputArgs) != 0 {
|
if len(c.InputArgs) != 0 {
|
||||||
name = 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)
|
newImage, err := runtime.ImageRuntime().New(ctx, name, rtc.SignaturePolicyPath, GetAuthFile(""), writer, nil, image.SigningOptions{}, false, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user