Skip to content

Commit 45850cf

Browse files
[IPAM] Update schema to remove default value for compartment_id in Address Block, Subnet, and Address (#242)
* Address bug NPA-910 * bug 241 - comp id fix --------- Co-authored-by: Ujjwal Nasra <125353741+unasra@users.noreply.github.com>
1 parent ec8c776 commit 45850cf

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

internal/service/ipam/model_ipamsvc_address.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ var IpamsvcAddressResourceSchemaAttributes = map[string]schema.Attribute{
9393
},
9494
"compartment_id": schema.StringAttribute{
9595
Computed: true,
96-
Default: stringdefault.StaticString(""),
9796
MarkdownDescription: "The compartment associated with the object. If no compartment is associated with the object, the value defaults to empty.",
9897
},
9998
"created_at": schema.StringAttribute{

internal/service/ipam/model_ipamsvc_address_block.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ var IpamsvcAddressBlockResourceSchemaAttributes = map[string]schema.Attribute{
169169
"compartment_id": schema.StringAttribute{
170170
Optional: true,
171171
Computed: true,
172-
Default: stringdefault.StaticString(""),
173172
MarkdownDescription: "The compartment associated with the object. If no compartment is associated with the object, the value defaults to empty.",
174173
},
175174
"created_at": schema.StringAttribute{

internal/service/ipam/model_ipamsvc_subnet.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ var IpamsvcSubnetResourceSchemaAttributes = map[string]schema.Attribute{
178178
MarkdownDescription: "The description for the subnet. May contain 0 to 1024 characters. Can include UTF-8.",
179179
},
180180
"compartment_id": schema.StringAttribute{
181-
Computed: true,
182-
Default: stringdefault.StaticString(""),
181+
Computed: true,
183182
MarkdownDescription: "The compartment associated with the object. If no compartment is associated with the object, the value defaults to empty.",
184183
},
185184
"config_profiles": schema.ListAttribute{

0 commit comments

Comments
 (0)