Skip to content

Commit 979e8c9

Browse files
authored
fix(k8s): fix empty PNID when not created alongside cluster (#3343)
1 parent cb9f32e commit 979e8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/namespaces/k8s/v1/custom_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func clusterCreateBuilder(c *core.Command) *core.Command {
132132
} else {
133133
pn, err = vpcAPI.GetPrivateNetwork(&vpc.GetPrivateNetworkRequest{
134134
Region: request.Region,
135-
PrivateNetworkID: pn.ID,
135+
PrivateNetworkID: *request.PrivateNetworkID,
136136
}, scw.WithContext(ctx))
137137
if err != nil {
138138
return nil, err

0 commit comments

Comments
 (0)