diff --git a/template/template.go b/template/template.go index 759751830..1a0260386 100644 --- a/template/template.go +++ b/template/template.go @@ -104,7 +104,7 @@ func (b *Builder) MarshalJSON() ([]byte, error) { // PostProcessor represents a post-processor within the template. type PostProcessor struct { - OnlyExcept `mapstructure:",squash" json:",omitempty"` + OnlyExcept `mapstructure:",squash"` Name string `json:"name,omitempty"` Type string `json:"type"` @@ -139,7 +139,7 @@ func (p *PostProcessor) MarshalJSON() ([]byte, error) { // Provisioner represents a provisioner within the template. type Provisioner struct { - OnlyExcept `mapstructure:",squash" json:",omitempty"` + OnlyExcept `mapstructure:",squash"` Type string `json:"type"` Config map[string]interface{} `json:"config,omitempty"`