Skip to content

Commit d8db0ac

Browse files
author
deveshgoyal1000
committed
Update getContainerInfo calls to use Task struct
1 parent 0be169f commit d8db0ac

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

internal/config_extractor.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ func ExtractConfigDump(checkpointPath string) (*ChkptConfig, error) {
3939
return nil, err
4040
}
4141

42-
info.containerInfo, err = getContainerInfo(info.specDump, info.configDump)
42+
task := Task{
43+
OutputDir: tempDir,
44+
CheckpointFilePath: checkpointPath,
45+
}
46+
info.containerInfo, err = getContainerInfo(info.specDump, info.configDump, task)
4347
if err != nil {
4448
return nil, err
4549
}

internal/oci_image_build.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ func (ic *ImageBuilder) getCheckpointAnnotations() (map[string]string, error) {
116116
return nil, err
117117
}
118118

119-
info.containerInfo, err = getContainerInfo(info.specDump, info.configDump)
119+
task := Task{
120+
OutputDir: tempDir,
121+
CheckpointFilePath: ic.checkpointPath,
122+
}
123+
info.containerInfo, err = getContainerInfo(info.specDump, info.configDump, task)
120124
if err != nil {
121125
return nil, err
122126
}

0 commit comments

Comments
 (0)