summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-09-15 11:36:02 +0900
committerToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-09-16 16:46:14 +0900
commitd63e49a26aa6df344ea3569cdb9f1b44d7f1256f (patch)
tree36b20a004b6d0907a6910aff435ee18880a44e37 /pkg/bindings
parenta73b150e70804907bb2c10390da766a0c6bc7485 (diff)
downloadpodman-d63e49a26aa6df344ea3569cdb9f1b44d7f1256f.tar.gz
podman-d63e49a26aa6df344ea3569cdb9f1b44d7f1256f.tar.bz2
podman-d63e49a26aa6df344ea3569cdb9f1b44d7f1256f.zip
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 <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/containers/checkpoint.go2
1 files changed, 1 insertions, 1 deletions
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)
}