Skip to content

Commit ad26618

Browse files
author
pavel-z1
committed
Prevent null section_id after creating first_free_subnet resource
1 parent 118f086 commit ad26618

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: plugin/providers/phpipam/subnet_structure.go

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
// Computed. Any field not listed here cannot be supplied by the resource and
1717
// is solely computed.
1818
var resourceSubnetOptionalFields = linearSearchSlice{
19+
"section_id",
1920
"description",
2021
"linked_subnet_id",
2122
"vlan_id",
@@ -146,8 +147,10 @@ func resourceFirstFreeSubnetSchema() map[string]*schema.Schema {
146147
v.ForceNew = true
147148
case k == "section_id":
148149
v.Optional = true
150+
v.Computed = true
149151
case k == "custom_fields":
150152
v.Optional = true
153+
v.Computed = true
151154
case resourceSubnetOptionalFields.Has(k):
152155
v.Optional = true
153156
v.Computed = true

0 commit comments

Comments
 (0)