-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
emr/cluster: Allow bootstrap action empty args #32956
Conversation
Community NoteVoting for Prioritization
For Submitters
|
vs = append(vs, aws.String(v)) | ||
} | ||
} | ||
return vs | ||
} | ||
|
||
// ExpandStringListEmpty the result of flatmap. Expand for an array of strings | ||
// and returns a []*string. Empty strings are NOT skipped. | ||
func ExpandStringListEmpty(configured []interface{}) []*string { |
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.
Add unit test(s) to internal/flex/flex_test.go
?
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.
Yeah, good idea. The unit tests can easily give a false positive if we put ""
(which is not what Terraform does) instead of nil
in the test.
9c62af0
to
c51ef98
Compare
6e55206
to
2dc1edb
Compare
This functionality has been released in v5.12.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Bootstrap args should be able to include empty strings. This change allows them to.
If you have this schema:
Any empty strings in that list end up as
nil
rather than""
in thed.Get()
[]interface{}
. Thus, if you loop through the list, doing this check, you'll get!ok
for the empty string in the config that is now anil
in the slice.In order to include an empty string, you instead need to do this:
Relations
Closes #32735.
Relates #32738.
References
Output from Acceptance Testing
(Failure unrelated to these changes.)