From e3c1e7c75b79b1ca9e0f2764f016a5add66b6505 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Thu, 21 Mar 2019 14:38:02 +0100 Subject: [PATCH] Location path and env are mutually exclusive, so one of the two fields is always empty, that's why these fields have now omitempty. Signed-off-by: Silvin Lubecki --- pkg/bundle/bundle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bundle/bundle.go b/pkg/bundle/bundle.go index 9f7c4358..7b1a7576 100644 --- a/pkg/bundle/bundle.go +++ b/pkg/bundle/bundle.go @@ -97,8 +97,8 @@ type InvocationImage struct { // // A location may be either a file (by path) or an environment variable. type Location struct { - Path string `json:"path" mapstructure:"path"` - EnvironmentVariable string `json:"env" mapstructure:"env"` + Path string `json:"path,omitempty" mapstructure:"path"` + EnvironmentVariable string `json:"env,omitempty" mapstructure:"env"` } // Maintainer describes a code maintainer of a bundle