Skip to content

Commit 7761f4b

Browse files
committed
fix(instance): cannot create server with project-id
While creating a server with a specific project-id, the request fail at the IP creation step. This is because we provide both a project and an organization while only one of these is expected. We end up with the following error: Error while creating your public IP: scaleway-sdk-go: invalid argument(s): does not respect constraint, Must contain one of ['organization', 'project'] This patch only provides a project since the organization field is deprecated.
1 parent 9e09daf commit 7761f4b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

internal/namespaces/instance/v1/custom_server_create_builder.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ func (sb *ServerBuilder) AddIP(ip string) (*ServerBuilder, error) {
186186
case ip == "" || ip == "new":
187187
sb.createIPReq = &instance.CreateIPRequest{
188188
Zone: sb.createReq.Zone,
189-
Organization: sb.createReq.Project,
190189
Project: sb.createReq.Project,
191190
Type: sb.defaultIPType(),
192191
}

0 commit comments

Comments
 (0)