From dca1f546ff1c064caab1ff96fa6f4d7dbd06c4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Nie=C3=9F?= Date: Sun, 5 Mar 2023 06:31:33 +0100 Subject: [PATCH] fix: Typo for tags field in ipam_rir resource --- examples/resources/netbox_ipam_rir/import.sh | 2 ++ netbox/ipam/resource_netbox_ipam_rir.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 examples/resources/netbox_ipam_rir/import.sh diff --git a/examples/resources/netbox_ipam_rir/import.sh b/examples/resources/netbox_ipam_rir/import.sh new file mode 100644 index 000000000..741dc9947 --- /dev/null +++ b/examples/resources/netbox_ipam_rir/import.sh @@ -0,0 +1,2 @@ +# RIRs can be imported by id +terraform import netbox_ipam_rir.rir_test 1 diff --git a/netbox/ipam/resource_netbox_ipam_rir.go b/netbox/ipam/resource_netbox_ipam_rir.go index 6abafe12a..49dfa0e7d 100644 --- a/netbox/ipam/resource_netbox_ipam_rir.go +++ b/netbox/ipam/resource_netbox_ipam_rir.go @@ -90,7 +90,7 @@ var rirRequiredFields = []string{ "last_updated", "name", "slug", - "tag", + "tags", } func resourceNetboxIpamRIRCreate(ctx context.Context, d *schema.ResourceData,