Skip to content

Commit b67adbb

Browse files
authored
fix(instance): disable dynamic IP on none (#1503)
Signed-off-by: Patrik Cyvoct <[email protected]>
1 parent 2129062 commit b67adbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/namespaces/instance/v1/custom_server_create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ func instanceServerCreateRun(ctx context.Context, argsI interface{}) (i interfac
253253
case args.IP == "dynamic":
254254
serverReq.DynamicIPRequired = scw.BoolPtr(true)
255255
case args.IP == "none":
256+
serverReq.DynamicIPRequired = scw.BoolPtr(false)
256257
default:
257258
return nil, fmt.Errorf(`invalid IP "%s", should be either 'new', 'dynamic', 'none', an IP address ID or a reserved flexible IP address`, args.IP)
258259
}

0 commit comments

Comments
 (0)