From eafaaa881f0c7848432c2731b7d0748f5f18ddb1 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 27 Jul 2017 16:53:15 +0200 Subject: [PATCH 1/2] builder/hyperv/iso: missing InterpolateContext --- builder/hyperv/iso/builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/hyperv/iso/builder.go b/builder/hyperv/iso/builder.go index e6c8d4d67..07c776d11 100644 --- a/builder/hyperv/iso/builder.go +++ b/builder/hyperv/iso/builder.go @@ -93,6 +93,7 @@ type Config struct { func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { err := config.Decode(&b.config, &config.DecodeOpts{ Interpolate: true, + InterpolateContext: &b.config.ctx, InterpolateFilter: &interpolate.RenderFilter{ Exclude: []string{ "boot_command", From ada8902721df0b5c4276e5b14eac68a6eb7c563a Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 8 Aug 2017 13:21:53 +0000 Subject: [PATCH 2/2] fix formatting --- builder/hyperv/iso/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/hyperv/iso/builder.go b/builder/hyperv/iso/builder.go index 07c776d11..657c07886 100644 --- a/builder/hyperv/iso/builder.go +++ b/builder/hyperv/iso/builder.go @@ -92,7 +92,7 @@ type Config struct { // Prepare processes the build configuration parameters. func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { err := config.Decode(&b.config, &config.DecodeOpts{ - Interpolate: true, + Interpolate: true, InterpolateContext: &b.config.ctx, InterpolateFilter: &interpolate.RenderFilter{ Exclude: []string{