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:
parent
330ca236d0
commit
ddc0f4cdb0
|
@ -25,6 +25,8 @@ func resourceCloudStackNetwork() *schema.Resource {
|
||||||
|
|
||||||
if value == none {
|
if value == none {
|
||||||
aclidSchema.ForceNew = true
|
aclidSchema.ForceNew = true
|
||||||
|
} else {
|
||||||
|
aclidSchema.ForceNew = false
|
||||||
}
|
}
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue