-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Updating data catalog tag template fails (google_data_catalog_tag_template) #8898
Updating data catalog tag template fails (google_data_catalog_tag_template) #8898
Comments
This seems to happen if |
Interesting comment from the API reference: Parametersforce | booleanRequired. Currently, this field must always be set to true. This confirms the deletion of this field from any tags using this field. force = false will be supported in the future. |
Which means that |
@geirsagberg yes, below is the doc that specifies what to do. Please close the issue if it is no longer an issue. |
I would still say it is a bug if the field is not required and the default (empty string) will never work? |
Definitely a bug IMO as reported over at #8906 |
I have opened above PR. We will receive below error message from api if
|
@edwardmedia I would have thought the correct fix would be to ensure the correct value gets written to the state file in the first place? |
@jamiet-msm not sure if I understand what you suggested. |
@edwardmedia Apologies for not explaining clearly. The problem that I elucidated at #8906 is that if Error: Error when reading or editing TagTemplate: googleapi: Error 400: Invalid value at 'force' (TYPE_BOOL), ""
Details:
[
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid value at 'force' (TYPE_BOOL), \"\"",
"field": "force"
}
]
}
] occurs when we try to deploy. Thus, if
In summary, my point is that the provider should prevent the problem from occurring in the first place rather than trying to handle it after the problem has occurred. |
One other issue (although its a minor one) is that the error message: [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid value at 'force' (TYPE_BOOL), \"\"",
"field": "force"
}
]
}
] refers to a field called force when in actual fact the argument is called force_delete |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.14.10
Affected Resource(s)
Terraform Configuration Files
Debug Output
Can't show entire output, but here is the relevant part (notice the missing query string value for
force=
:Panic Output
Expected Behavior
Tag template to be deleted and recreated (preferrably updated, but that is covered by #6574.
Actual Behavior
No changes, received 400 bad request:
Steps to Reproduce
terraform apply
is_required
fromtrue
tofalse
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: