Skip to content

Commit

Permalink
Merge pull request #9675 from hashicorp/fix_shell-local_provisioner
Browse files Browse the repository at this point in the history
fix cty bool passing for provisioners, too
  • Loading branch information
SwampDragons authored Jul 30, 2020
2 parents 40b1adc + 2bd2954 commit f1a14cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hcl2template/types.hcl_provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f1a14cf

Please # to comment.