devopsarr / terraform-provider-radarr

Terraform Radarr provider
https://registry.terraform.io/providers/devopsarr/radarr
Mozilla Public License 2.0
11 stars 0 forks source link

Client error LogSizeLimit #265

Open mscreations opened 1 week ago

mscreations commented 1 week ago

The Radarr api was updated and the radarr_host resource won't apply properly.

Here is the error message I receive:

│ Error: Client Error
│
│   with radarr_host.radarr,
│   on arrapps.tf line 196, in resource "radarr_host" "radarr":
│  196: resource "radarr_host" "radarr" {
│
│ Unable to update host, got error: 400 Bad Request
│ Details:
│ [
│   {
│     "propertyName": "LogSizeLimit",
│     "errorMessage": "\u0027Log Size Limit\u0027 must be between 1 and 10. You entered 0.",
│     "attemptedValue": 0,
│     "severity": "error",
│     "errorCode": "InclusiveBetweenValidator",
│     "formattedMessageArguments": [],
│     "formattedMessagePlaceholderValues": {
│       "from": 1,
│       "to": 10,
│       "value": 0,
│       "propertyName": "Log Size Limit",
│       "propertyValue": 0
│     }
│   }
│ ]

This looks like a new property they added to the API, but it causes the terraform provider to fail because there is no way that I can determine to set that property.

Fuochi commented 1 week ago

Hi @mscreations, I am aware, the API change has already been merged here https://github.com/devopsarr/radarr-go/pull/69. I still have to create a new SDK release, and then a new provider release. And this goes for the other terraform providers as well. I'll try to find time to do that soon.