fix cty bool passing for provisioners, too
This commit is contained in:
parent
40b1adc97a
commit
2bd2954412
|
@ -39,6 +39,8 @@ func (p *HCL2Provisioner) HCL2Prepare(buildVars map[string]interface{}) error {
|
||||||
buildValues[k] = cty.NumberIntVal(v)
|
buildValues[k] = cty.NumberIntVal(v)
|
||||||
case uint64:
|
case uint64:
|
||||||
buildValues[k] = cty.NumberUIntVal(v)
|
buildValues[k] = cty.NumberUIntVal(v)
|
||||||
|
case bool:
|
||||||
|
buildValues[k] = cty.BoolVal(v)
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unhandled buildvar type: %T", v)
|
return fmt.Errorf("unhandled buildvar type: %T", v)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue