Skip to content

Commit

Permalink
fix(instance): cannot create server with project-id (scaleway#4127)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <[email protected]>
  • Loading branch information
ziirish and remyleone committed Sep 13, 2024
1 parent edc1f47 commit 57298fc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57298fc

Please sign in to comment.