Fix dynamically determining if `ForceNew = true` (#7745)

The same instance of the resources’ `schema.Resource` is used for all resources of the same type.

So we need to set either `true` or `false` for every resource to make sure we get the correct value.
This commit is contained in:
Sander van Harmelen 2016-07-21 15:23:58 +02:00 committed by GitHub
parent 330ca236d0
commit ddc0f4cdb0
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ func resourceCloudStackNetwork() *schema.Resource {
if value == none {
aclidSchema.ForceNew = true
} else {
aclidSchema.ForceNew = false
}
return value