Skip to content

Commit

Permalink
Update resource_container_cluster.go.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayimeow authored Oct 30, 2023
1 parent 0dde339 commit b2c74d9
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,12 @@ var (
return false
})

suppressDiffForExsitingFleet = schema.SchemaDiffSuppressFunc(func(k, oldValue, newValue string, d *schema.ResourceData) bool {
o, n := d.GetChange("fleet.0.pre_registered")
log.Printf("[DEBUG] fleet suppress pre_registered old: %v, new: %v\n", o, n)
return o.(bool)
suppressDiffForPreRegisteredFleet = schema.SchemaDiffSuppressFunc(func(k, oldValue, newValue string, d *schema.ResourceData) bool {
if v, _ := d.Get("fleet.0.pre_registered").(bool); v {
log.Printf("[DEBUG] fleet suppress pre_registered: %v\n", v)
return true
}
return false
})
)

Expand Down

0 comments on commit b2c74d9

Please sign in to comment.