From d63e49a26aa6df344ea3569cdb9f1b44d7f1256f Mon Sep 17 00:00:00 2001 From: Toshiki Sonoda Date: Thu, 15 Sep 2022 11:36:02 +0900 Subject: remote: checkpoint --export prints a rawInput or an error on remote This commit fixes `container checkpoint --export` to print a rawInput or an error. Fixes: #15743 Signed-off-by: Toshiki Sonoda --- pkg/bindings/containers/checkpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/bindings') diff --git a/pkg/bindings/containers/checkpoint.go b/pkg/bindings/containers/checkpoint.go index bcb944488..8c072f588 100644 --- a/pkg/bindings/containers/checkpoint.go +++ b/pkg/bindings/containers/checkpoint.go @@ -39,7 +39,7 @@ func Checkpoint(ctx context.Context, nameOrID string, options *CheckpointOptions } defer response.Body.Close() - if !export { + if response.StatusCode != http.StatusOK || !export { return &report, response.Process(&report) } -- cgit v1.2.3-54-g00ecf