From a8c8d247bb4874f1e06064a8a0d450677802b8b0 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 22 Jan 2021 12:32:07 -0800 Subject: [PATCH] fix uint8 --- 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 df962f3a0..132dd100e 100644 --- a/hcl2template/types.hcl_provisioner.go +++ b/hcl2template/types.hcl_provisioner.go @@ -40,6 +40,8 @@ func (p *HCL2Provisioner) HCL2Prepare(buildVars map[string]interface{}) error { switch v := v.(type) { case string: buildValues[k] = cty.StringVal(v) + case uint8: + buildValues[k] = cty.NumberUIntVal(v) case int64: buildValues[k] = cty.NumberIntVal(v) case uint64: