Skip to content

Commit

Permalink
fix(instance): disable dynamic IP on none (#1503)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Cyvoct <[email protected]>
  • Loading branch information
Sh4d1 authored Oct 27, 2020
1 parent 2129062 commit b67adbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/namespaces/instance/v1/custom_server_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ func instanceServerCreateRun(ctx context.Context, argsI interface{}) (i interfac
case args.IP == "dynamic":
serverReq.DynamicIPRequired = scw.BoolPtr(true)
case args.IP == "none":
serverReq.DynamicIPRequired = scw.BoolPtr(false)
default:
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)
}
Expand Down

0 comments on commit b67adbb

Please sign in to comment.