From 0a4ade1c175d3188ad55d22d751a86c96e060a44 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 24 May 2018 13:44:04 -0700 Subject: Implement python podman create and start - Added alias 'container()' to image model for CreateContainer() - Fixed return in containers_create.go to wrap error in varlink exception - Added a wait time to container.kill(), number of seconds to wait for the container to change state - Refactored cached_property() to use system libraries - Refactored tests to speed up performance Signed-off-by: Jhon Honce Closes: #821 Approved by: rhatdan --- pkg/varlinkapi/containers_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/varlinkapi') diff --git a/pkg/varlinkapi/containers_create.go b/pkg/varlinkapi/containers_create.go index 77799cb8d..24edb05b8 100644 --- a/pkg/varlinkapi/containers_create.go +++ b/pkg/varlinkapi/containers_create.go @@ -41,7 +41,7 @@ func (i *LibpodAPI) CreateContainer(call ioprojectatomicpodman.VarlinkCall, conf newImage, err := runtime.ImageRuntime().New(ctx, config.Image, rtc.SignaturePolicyPath, "", os.Stderr, nil, image.SigningOptions{}, false, false) if err != nil { - return err + return call.ReplyErrorOccurred(err.Error()) } data, err := newImage.Inspect(ctx) -- cgit v1.2.3-54-g00ecf