terraform/builtin/provisioners/chef
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
..
test-fixtures
linux_provisioner.go
linux_provisioner_test.go
resource_provisioner.go provisioners/chef: check IsComputed for JSON attributes 2017-01-29 12:30:44 -08:00
resource_provisioner_test.go provisioners/chef: check IsComputed for JSON attributes 2017-01-29 12:30:44 -08:00
windows_provisioner.go
windows_provisioner_test.go