-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Honor async.error
settings from api.yaml in Terraform providers
#12431
Comments
The workaround is to turn off |
Based on the number of wrong / untrusted async blogs in MM and the infrequency of operations deviating significantly, we'd rather handwrite exceptional cases for now. Terraform's templates only use a limited number of fields from the operations. |
) [upstream:40271bcda3afeca21b9bdb4cb7f35485e997d5b4] Signed-off-by: Modular Magician <[email protected]>
) [upstream:40271bcda3afeca21b9bdb4cb7f35485e997d5b4] Signed-off-by: Modular Magician <[email protected]>
Closing as a duplicate of #17098 - we should just remove the configuration for now and then do an actual intentional implementation later if needed. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
It looks like the operation error options that you can set in api.yaml don't actually get used anywhere - for example: https://github.com/GoogleCloudPlatform/magic-modules/blob/065f680d36c0a653e9d8542257d60663f96c15c5/mmv1/products/datastream/api.yaml#L40
it looks like the actually operation error just gets wrapped in CommonOpError which just always uses
e.Message
:terraform-provider-google/google/common_operation.go
Line 18 in 5800a6d
This breaks down if the error message is in a different place - for example:
This ends up getting displayed as:
Expected Behavior
We should be honoring the async.error settings so that autogenerated resources can compensate for different operation error structures.
The text was updated successfully, but these errors were encountered: