Skip to content

Commit 373cbc2

Browse files
authored
Merge pull request #4544 from schrej/patch-1
cr: fix checkpoint from image getting skipped
2 parents 585a19a + ab5d931 commit 373cbc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/tasks/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (l *local) Create(ctx context.Context, r *api.CreateTaskRequest, _ ...grpc.
148148
return nil, err
149149
}
150150
// jump get checkpointPath from checkpoint image
151-
if checkpointPath != "" && r.Checkpoint != nil {
151+
if checkpointPath == "" && r.Checkpoint != nil {
152152
checkpointPath, err = ioutil.TempDir(os.Getenv("XDG_RUNTIME_DIR"), "ctrd-checkpoint")
153153
if err != nil {
154154
return nil, err

0 commit comments

Comments
 (0)