Skip to content

Commit

Permalink
Mark instance pool attributes as ForceNew when it's requited (databri…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed May 2, 2021
1 parent f7f09d9 commit 8cb1b5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compute/resource_instance_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,15 @@ func ResourceInstancePool() *schema.Resource {
s["aws_attributes"].ForceNew = true
s["node_type_id"].ForceNew = true
s["custom_tags"].ForceNew = true
s["preloaded_spark_versions"].ForceNew = true
s["azure_attributes"].ForceNew = true
s["disk_spec"].ForceNew = true
s["enable_elastic_disk"].ForceNew = true
s["enable_elastic_disk"].Default = true
s["aws_attributes"].ConflictsWith = []string{"azure_attributes"}
s["azure_attributes"].ConflictsWith = []string{"aws_attributes"}
s["aws_attributes"].DiffSuppressFunc = makeEmptyBlockSuppressFunc("aws_attributes.#")
s["azure_attributes"].DiffSuppressFunc = makeEmptyBlockSuppressFunc("azure_attributes.#")
// TODO: check if it's really force new...
if v, err := common.SchemaPath(s, "aws_attributes", "availability"); err == nil {
v.ForceNew = true
v.Default = AwsAvailabilitySpot
Expand Down

0 comments on commit 8cb1b5c

Please sign in to comment.