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: