summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-26 07:58:25 +0000
committerGitHub <noreply@github.com>2021-10-26 07:58:25 +0000
commitf82f93c9bdaca49765019966df43384d34469575 (patch)
tree6b3907947aa49553ace7642034632b0ad8206157 /libpod/container_internal_linux.go
parentdbe770e3ce2ac2e34ffa8e28b80df57eb0182a68 (diff)
parenta42c131c80fc8c7220687c56cf4384a224572ca0 (diff)
downloadpodman-f82f93c9bdaca49765019966df43384d34469575.tar.gz
podman-f82f93c9bdaca49765019966df43384d34469575.tar.bz2
podman-f82f93c9bdaca49765019966df43384d34469575.zip
Merge pull request #12084 from rhatdan/VENDOR
Update vendor github.com/opencontainers/runtime-tools
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 27cc318b4..d3151f7e0 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -322,7 +322,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) {
return nil, err
}
- g := generate.Generator{Config: c.config.Spec}
+ g := generate.NewFromSpec(c.config.Spec)
// If network namespace was requested, add it now
if c.config.CreateNetNS {
@@ -1219,7 +1219,8 @@ func (c *Container) importCheckpoint(input string) error {
}
// Make sure the newly created config.json exists on disk
- g := generate.Generator{Config: c.config.Spec}
+ g := generate.NewFromSpec(c.config.Spec)
+
if err := c.saveSpec(g.Config); err != nil {
return errors.Wrap(err, "saving imported container specification for restore failed")
}