-
Notifications
You must be signed in to change notification settings - Fork 99
list: minor fixes in ListResource and ValidateListResourceConfig
#1192
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
Conversation
8ac8872 to
575ddd7
Compare
| diagsStream.Results = list.NoListResults | ||
| } | ||
|
|
||
| fwStream.Results = processListResults(req, stream.Results, diagsStream.Results) |
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.
@dbanck in order to capture any warning diagnostics that providers might set during the Configure call on line 115 above there might be cases where we need to append an empty ListResult with only a warning diagnostic in it to the stream.
How would this be handled by Terraform and would this be problematic?
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.
In the current implementation we stop on errors, but continue on warnings.
But we also raise an error when a result has no identity.
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.
So appending a result with only a warning will still result in an error in Terraform, because the identity is missing
austinvalle
left a comment
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.
LGTM, we can add some tests later when we have a plan on how we want to handle those warning diagnostics 🚀
1b63303 to
82f4776
Compare
Description
ListResourceRPCListResourcecall in theValidateListResourceConfigRollback Plan
Changes to Security Controls
None