diff options
author | Matthew Heon <mheon@redhat.com> | 2020-12-07 11:50:47 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-12-07 11:50:47 -0500 |
commit | c050fad958fb86a2647bf318671e348fb2fa1904 (patch) | |
tree | d691fef44ba265f51c72fa341326c4938f797f97 /libpod/in_memory_state.go | |
parent | dc5da90523f35146f5368a31be7edf39be13beb4 (diff) | |
download | podman-c050fad958fb86a2647bf318671e348fb2fa1904.tar.gz podman-c050fad958fb86a2647bf318671e348fb2fa1904.tar.bz2 podman-c050fad958fb86a2647bf318671e348fb2fa1904.zip |
Change name of imageVolumes in container config JSON
Podman pre-1.8 also included a field with this name, which was a
String. Podman 2.2.0 added a new field reusing the name but as a
Struct. This completely broke JSON decode for pre-1.8 containers
in Podman 2.2, resulting in completely broken behavior.
Re-name the JSON field and add a note that the old name should
not be re-used to prevent this problem from re-occurring. This
will still result in containers from 2.2.0 being broken
(specifically, containers with image volumes will have them
disappear) but this is the lesser of two evils.
Fixes #8613
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/in_memory_state.go')
0 files changed, 0 insertions, 0 deletions