From 2bd29544124eaff72a797d4a90244c28c8538d69 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 30 Jul 2020 11:25:44 -0700 Subject: [PATCH] fix cty bool passing for provisioners, too --- hcl2template/types.hcl_provisioner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hcl2template/types.hcl_provisioner.go b/hcl2template/types.hcl_provisioner.go index 4222a7ee3..6411f9167 100644 --- a/hcl2template/types.hcl_provisioner.go +++ b/hcl2template/types.hcl_provisioner.go @@ -39,6 +39,8 @@ func (p *HCL2Provisioner) 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) }