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 Support recreating clients and configuring Chef Vaults (#8577) 2016-09-15 14:20:18 +02:00
linux_provisioner.go provisioner/chef: fixes #4262 2016-01-09 15:56:49 +01:00
linux_provisioner_test.go Support recreating clients and configuring Chef Vaults (#8577) 2016-09-15 14:20:18 +02:00
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 Fixes #2676 by prefixing all Windows commands 2015-07-10 12:56:27 +02:00
windows_provisioner_test.go Support recreating clients and configuring Chef Vaults (#8577) 2016-09-15 14:20:18 +02:00