UpdateLogpushJobParams: Make it possible to remove logpull_options on update#1711
UpdateLogpushJobParams: Make it possible to remove logpull_options on update#1711dloebl wants to merge 2 commits intocloudflare:masterfrom
Conversation
|
changelog detected ✅ |
|
we shouldn't be sending empty strings to the API in order to remove values when using PUT given it should represent the final state of the resource. the let me check with the internal team as to which behaviour we are expecting here. |
|
Thanks Jacob! Yeah, I think it would be better to solve this right at the API level. Just let me know in case further details are needed. |
|
@jacobbednarz any update on this getting resolved upstream in the API ? |
|
no further updates at this point. the team have it in their backlog to investigate and look at a fix to maintain compatibility. the |
|
We've recently opened a support ticket regarding this, as a workaround we keep |
You can also ignore that field, after setting it to |
|
Closing this as the v0.x branch is no longer receiving active development. Instead, you should look to upgrade to the latest version of the library (v4 at the time of writing this). |
Description
For reference: #1709
Make it possible to remove the
logpull_optionson update. I think this is still an issue with the Cloudflare API: I would expect aPUTto overwrite the existing resource, not only change the specified values.Before:
PUTrequest (TF_LOG=traceoutput):With this change:
PUTrequest (TF_LOG=traceoutput):Output of the second terraform plan
Types of changes
What sort of change does your code introduce/modify?
Checklist:
and relies on stable APIs.