diff options
author | Adrian Reber <areber@redhat.com> | 2022-02-11 10:16:02 +0000 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-02-16 13:58:40 -0500 |
commit | d77b4f92c013b0d8773750abb75ca7816454e8a3 (patch) | |
tree | d0365324b6d952fba11bdcea4e51c6b4083d48e8 /libpod | |
parent | a72e22160a2cf4fcf868d7095bcdf9eb5e92f3cd (diff) | |
download | podman-d77b4f92c013b0d8773750abb75ca7816454e8a3.tar.gz podman-d77b4f92c013b0d8773750abb75ca7816454e8a3.tar.bz2 podman-d77b4f92c013b0d8773750abb75ca7816454e8a3.zip |
Fix checkpoint/restore pod tests
Checkpoint/restore pod tests are not running with an older runc and now
that runc 1.1.0 appears in the repositories it was detected that the
tests were failing. This was not detected in CI as CI was not using runc
1.1.0 yet.
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime_ctr.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index 3799b463f..44364100e 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -192,6 +192,11 @@ func (r *Runtime) initContainerVariables(rSpec *spec.Spec, config *ContainerConf } // Reset the log path to point to the default ctr.config.LogPath = "" + // Later in validate() the check is for nil. JSONDeepCopy sets it to an empty + // object. Resetting it to nil if it was nil before. + if config.StaticMAC == nil { + ctr.config.StaticMAC = nil + } } ctr.config.Spec = rSpec |