Skip to content

Commit 24df682

Browse files
authored
Fix(vpc-private-network): Add flag computed to name on schema (#987)
1 parent 5fb6180 commit 24df682

3 files changed

+231
-57
lines changed

scaleway/resource_vpc_private_network.go

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func resourceScalewayVPCPrivateNetwork() *schema.Resource {
2525
Type: schema.TypeString,
2626
Optional: true,
2727
Description: "The name of the private network",
28+
Computed: true,
2829
},
2930
"tags": {
3031
Type: schema.TypeList,

scaleway/resource_vpc_private_network_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ func TestAccScalewayVPCPrivateNetwork_Basic(t *testing.T) {
9393
),
9494
),
9595
},
96+
{
97+
Config: `resource scaleway_vpc_private_network main {}`,
98+
Check: resource.ComposeTestCheckFunc(
99+
testAccCheckScalewayVPCPrivateNetworkExists(
100+
tt,
101+
"scaleway_vpc_private_network.main",
102+
),
103+
resource.TestCheckResourceAttrSet("scaleway_vpc_private_network.main", "name"),
104+
),
105+
},
96106
},
97107
})
98108
}

0 commit comments

Comments
 (0)