From c98382324d0459afbec5ca0596e23d4eaec66582 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Thu, 21 Mar 2019 14:39:44 +0100 Subject: [PATCH] Action Modifies is optional, so it should have omitempty tag. Signed-off-by: Silvin Lubecki --- pkg/bundle/bundle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bundle/bundle.go b/pkg/bundle/bundle.go index 7b1a7576..9f457e52 100644 --- a/pkg/bundle/bundle.go +++ b/pkg/bundle/bundle.go @@ -116,7 +116,7 @@ type Action struct { // Modifies indicates whether this action modifies the release. // // If it is possible that an action modify a release, this must be set to true. - Modifies bool `json:"modifies" mapstructure:"modifies"` + Modifies bool `json:"modifies,omitempty" mapstructure:"modifies"` // Stateless indicates that the action is purely informational, that credentials are not required, and that the runtime should not keep track of its invocation Stateless bool `json:"stateless,omitempty" mapstructure:"stateless"` // Description describes the action as a user-readable string