-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore autoaz changes #937
Conversation
Codecov Report
@@ Coverage Diff @@
## master #937 +/- ##
=======================================
Coverage 85.32% 85.32%
=======================================
Files 95 95
Lines 8663 8670 +7
=======================================
+ Hits 7392 7398 +6
- Misses 778 779 +1
Partials 493 493
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see comments
clusters/resource_cluster.go
Outdated
@@ -47,9 +48,19 @@ func SparkConfDiffSuppressFunc(k, old, new string, d *schema.ResourceData) bool | |||
return false | |||
} | |||
|
|||
func AwsAttribsDiffSuppressFunc(k, old, new string, d *schema.ResourceData) bool { | |||
if strings.HasPrefix(k, "aws_attributes.") && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just check for key as a string - I've made GoLang custom struct fields to translate as always-single-element-lists, so you can be sure of first element being zero
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This change will prevent Terraform to restart a cluster which AwsAttributes.zone_id = "auto", as this is an unneeded/unwanted behavior.