Merge pull request #9675 from hashicorp/fix_shell-local_provisioner

fix cty bool passing for provisioners, too
pull/9677/head
Megan Marsh 6 years ago committed by GitHub
commit f1a14cf306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}

Loading…
Cancel
Save