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