Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Location path and env are mutually exclusive, so one of the two field…
Browse files Browse the repository at this point in the history
…s is always empty,

that's why these fields have now omitempty.

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki committed Mar 22, 2019
1 parent bfc9302 commit e3c1e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bundle/bundle.go
Expand Up @@ -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
Expand Down

0 comments on commit e3c1e7c

Please sign in to comment.