From 3635df89dc7f0fdce8a7c29404afdc3070a74b01 Mon Sep 17 00:00:00 2001 From: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:30:32 -0300 Subject: [PATCH] fix(snapshots): change the snapshot object to maintain backwards compatibility EE-5240 (#8705) --- api/portainer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/portainer.go b/api/portainer.go index 69eebcc0b..7029dc55b 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -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