From fa58522242abf8046984e48581018a8f56816727 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 7 Dec 2022 13:10:49 +0100 Subject: [PATCH] store: skip DockerContext field from being saved Signed-off-by: CrazyMax --- store/nodegroup.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/store/nodegroup.go b/store/nodegroup.go index de0bf533..cbfcf225 100644 --- a/store/nodegroup.go +++ b/store/nodegroup.go @@ -12,11 +12,13 @@ import ( ) type NodeGroup struct { - Name string - Driver string - Nodes []Node - Dynamic bool - DockerContext bool + Name string + Driver string + Nodes []Node + Dynamic bool + + // skip the following fields from being saved in the store + DockerContext bool `json:"-"` } type Node struct {