terraform/builtin/provisioners
Mitchell Hashimoto 5fc516f99d
provisioners/chef: check IsComputed for JSON attributes
Fixes #10788

This checks `IsComputed` prior to attempting to use the JSON
configurations. Due to a change in 0.8, the prior check for simply map
existence would always succeed even with a computed value (as designed),
but we forgot to update provisioners to not do that.

There are other provisioners that also do this but to no ill effect
currently. I've only changed Chef since we know that is an issue.

This issue doesn't affect 0.9 due to helper/schema doing this
automatically for provisioners.
2017-01-29 12:30:44 -08:00
..
chef provisioners/chef: check IsComputed for JSON attributes 2017-01-29 12:30:44 -08:00
file provisioner/file: Clean up temporary files 2016-07-08 19:35:00 +01:00
local-exec provisioners/local-exec: output the output 2014-10-05 23:05:49 -07:00
remote-exec provisioner/remote-exec: fail on first inline script with bad exit code (#11155) 2017-01-20 14:04:43 +00:00