You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netbox_cluster={
name ="test"
cluster_type_id =2
env ="test"
client ="infra"
}
Expected Behavior
Terraform should update the cluster test and add the Tags "test" and "infra"
Actual Behavior
Terraform states the following error:
Error: [PATCH /virtualization/clusters/{id}/][400] virtualization_clusters_partial_update default map[tags:[This field may not be null.]]
on main.tf line 72, in resource "netbox_cluster" "cluster":
72: resource "netbox_cluster" "cluster" {
Steps to Reproduce
terraform apply
Root Cause
Tags are not set inside the update function of the Cluster-Resource.
(terraform-provider-netbox/netbox/resource_netbox_cluster.go: func resourceNetboxClusterUpdate)
Recommended Bugfig
add "tags, _ := getNestedTagListFromResourceDataSet(api, d.Get("tags"))
data.Tags = tags"
to terraform-provider-netbox/netbox/resource_netbox_cluster.go inside the function resourceNetboxClusterUpdate.
The text was updated successfully, but these errors were encountered:
Terraform Version
terraform v0.14.9
provider v0.2.2
netbox v2.10.10
Affected Resource(s)
netbox-cluster
Terraform Configuration Files
Expected Behavior
Terraform should update the cluster test and add the Tags "test" and "infra"
Actual Behavior
Terraform states the following error:
Error: [PATCH /virtualization/clusters/{id}/][400] virtualization_clusters_partial_update default map[tags:[This field may not be null.]]
on main.tf line 72, in resource "netbox_cluster" "cluster":
72: resource "netbox_cluster" "cluster" {
Steps to Reproduce
terraform apply
Root Cause
Tags are not set inside the update function of the Cluster-Resource.
(terraform-provider-netbox/netbox/resource_netbox_cluster.go: func resourceNetboxClusterUpdate)
Recommended Bugfig
add "tags, _ := getNestedTagListFromResourceDataSet(api, d.Get("tags"))
data.Tags = tags"
to terraform-provider-netbox/netbox/resource_netbox_cluster.go inside the function resourceNetboxClusterUpdate.
The text was updated successfully, but these errors were encountered: