Skip to content

fix: replace int64 with NestedCable in NestedPowerPort#68

Open
aluki wants to merge 1 commit into
fbreckle:masterfrom
aluki:fix_nested_cable
Open

fix: replace int64 with NestedCable in NestedPowerPort#68
aluki wants to merge 1 commit into
fbreckle:masterfrom
aluki:fix_nested_cable

Conversation

@aluki

@aluki aluki commented Jun 23, 2026

Copy link
Copy Markdown

I get this error:

Error: json: cannot unmarshal object into Go struct field NestedPowerPort.power_port.cable of type int64
│
│   with netbox_device_power_outlet.p1,
│   on main.tf line 102, in resource "netbox_device_power_outlet" "p1":
│  102: resource "netbox_device_power_outlet" "p1" {

The NestedPowerPort model defines the Cable as int64. Changed to NestedCable, as the API returns the cable JSON, not only the id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant