smutel/terraform-provider-netbox

netbox_ipam_prefix parsing time error when applying

Closed this issue · 1 comments

Summary

When running apply, terraform errors with "Error: parsing time "2022-05-17T17:37:40.748725Z": extra text: "T17:37:40.748725Z" error (timestamp changes based on run time).

Version

Netbox version

3.2.3

Terraform version

1.0.8

Provider version

3.1.0

Issue details

Affected Data(s) / Resource(s)

  • resource netbox_ipam_prefix

Terraform Configuration Files

resource "netbox_ipam_prefix" "prefix" {
  description = "Test description"
  is_pool     = true
  prefix      = "192.168.56.0/24"
  status      = "active"
}

Terraform Output

netbox_ipam_prefix.prefix: Creating...
╷
│ Error: parsing time "2022-05-17T17:37:40.748725Z": extra text: "T17:37:40.748725Z"
│
│   with netbox_ipam_prefix.prefix,
│   on main.tf line 3, in resource "netbox_ipam_prefix" "prefix":
│    3: resource "netbox_ipam_prefix" "prefix" {
│
╵

Behaviors

Actual Behavior

Resource is created but state file isn't being set/updated as terraform is encountering an error.

Expected Behavior

Resource is created and state file is updated to match.

Steps to Reproduce

  1. terraform apply