Merge pull request #4544 from schrej/patch-1
cr: fix checkpoint from image getting skipped
This commit is contained in:
commit
373cbc2a7f
@ -148,7 +148,7 @@ func (l *local) Create(ctx context.Context, r *api.CreateTaskRequest, _ ...grpc.
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// jump get checkpointPath from checkpoint image
|
// jump get checkpointPath from checkpoint image
|
||||||
if checkpointPath != "" && r.Checkpoint != nil {
|
if checkpointPath == "" && r.Checkpoint != nil {
|
||||||
checkpointPath, err = ioutil.TempDir(os.Getenv("XDG_RUNTIME_DIR"), "ctrd-checkpoint")
|
checkpointPath, err = ioutil.TempDir(os.Getenv("XDG_RUNTIME_DIR"), "ctrd-checkpoint")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user