From 713e7a2683f0d2748a32dc5d1b806b2e5ddc336f Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 29 Jul 2020 14:59:50 -0700 Subject: [PATCH] fix docker-import postprocessor. --- hcl2template/types.hcl_post-processor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hcl2template/types.hcl_post-processor.go b/hcl2template/types.hcl_post-processor.go index 3f659ed9f..37ae1660f 100644 --- a/hcl2template/types.hcl_post-processor.go +++ b/hcl2template/types.hcl_post-processor.go @@ -39,6 +39,8 @@ func (p *HCL2PostProcessor) HCL2Prepare(buildVars map[string]interface{}) error buildValues[k] = cty.NumberIntVal(v) case uint64: buildValues[k] = cty.NumberUIntVal(v) + case bool: + buildValues[k] = cty.BoolVal(v) default: return fmt.Errorf("unhandled buildvar type: %T", v) }