fix(snapshots): change the snapshot object to maintain backwards compatibility EE-5240 (#8704)

This commit is contained in:
andres-portainer
2023-03-23 13:30:50 -03:00
committed by GitHub
parent 72b41dde01
commit 0bf75ae113

View File

@@ -225,7 +225,7 @@ type (
// It contains some information of Docker's ContainerJSON struct
DockerContainerSnapshot struct {
types.Container
Env []string `json:"Env"`
Env []string `json:"Env,omitempty"` // EE-5240
}
// DockerSnapshotRaw represents all the information related to a snapshot as returned by the Docker API