We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece89f3 commit ef7b4c3Copy full SHA for ef7b4c3
pkg/api/helpers.go
@@ -300,7 +300,7 @@ type ConfigCreateServer struct {
300
// CreateServer creates a server using API based on typical server fields
301
func CreateServer(api *ScalewayAPI, c *ConfigCreateServer) (string, error) {
302
commercialType := os.Getenv("SCW_COMMERCIAL_TYPE")
303
- if commercialType != "" {
+ if commercialType == "" {
304
commercialType = c.CommercialType
305
}
306
0 commit comments