post-processor/checksum: properly interpolate output

Fix a bug where "output" of checksum post-processor was not correctly
interpolating {{.BuilderType}}, {{.BuildName}}, and {{.ChecksumType}}.
pull/5112/head
Rickard von Essen 9 years ago
parent 587d661c74
commit 337e7d88e6
No known key found for this signature in database
GPG Key ID: E0C0327388876CBA

@ -57,9 +57,10 @@ func getHash(t string) hash.Hash {
func (p *PostProcessor) Configure(raws ...interface{}) error {
err := config.Decode(&p.config, &config.DecodeOpts{
Interpolate: true,
Interpolate: true,
InterpolateContext: &p.config.ctx,
InterpolateFilter: &interpolate.RenderFilter{
Exclude: []string{},
Exclude: []string{"output"},
},
}, raws...)
if err != nil {

Loading…
Cancel
Save