From 57298fc1794301696be6298d4a3bcb1d6d85465c Mon Sep 17 00:00:00 2001 From: "Benjamin \"Ziirish\" SANS" Date: Fri, 13 Sep 2024 11:08:43 +0200 Subject: [PATCH] fix(instance): cannot create server with project-id (#4127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rémy Léone --- .../namespaces/instance/v1/custom_server_create_builder.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/namespaces/instance/v1/custom_server_create_builder.go b/internal/namespaces/instance/v1/custom_server_create_builder.go index 868c13f16..95f648c72 100644 --- a/internal/namespaces/instance/v1/custom_server_create_builder.go +++ b/internal/namespaces/instance/v1/custom_server_create_builder.go @@ -185,10 +185,9 @@ func (sb *ServerBuilder) AddIP(ip string) (*ServerBuilder, error) { switch { case ip == "" || ip == "new": sb.createIPReq = &instance.CreateIPRequest{ - Zone: sb.createReq.Zone, - Organization: sb.createReq.Project, - Project: sb.createReq.Project, - Type: sb.defaultIPType(), + Zone: sb.createReq.Zone, + Project: sb.createReq.Project, + Type: sb.defaultIPType(), } case validation.IsUUID(ip): sb.createReq.PublicIP = scw.StringPtr(ip)