smutel / terraform-provider-netbox

Terraform provider for Netbox
ISC License
58 stars 19 forks source link

Removing timezone from dcim_site fails #189

Closed amhn closed 1 year ago

amhn commented 1 year ago

Summary

Removing the time_zone from an existing netbox_dcim_site resource fails with erro.

Version

Netbox version

3.3.10

Terraform version

1.4.0

Provider version

6.1.1

Issue details

Affected Data(s) / Resource(s)

Terraform Output

netbox_dcim_site.test: Modifying... [id=21]
╷
│ Error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 400): {}
│ 
│   with netbox_dcim_site.test,
│   on dcim.tf line 9, in resource "netbox_dcim_site" "test":
│    9: resource "netbox_dcim_site" "test" {
│ 

Behaviors

Actual Behavior

Error from netbox. Time zone is not removed.

Expected Behavior

Time zone is unset

Steps to Reproduce

  1. Create site with time zone
  2. Remove time zone from resource
  3. terraform apply