Skip to content

Commit ef7b4c3

Browse files
author
Quentin Perez
committed
api: fix bug when using SCW_COMMERCIAL_TYPE variable
1 parent ece89f3 commit ef7b4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ type ConfigCreateServer struct {
300300
// CreateServer creates a server using API based on typical server fields
301301
func CreateServer(api *ScalewayAPI, c *ConfigCreateServer) (string, error) {
302302
commercialType := os.Getenv("SCW_COMMERCIAL_TYPE")
303-
if commercialType != "" {
303+
if commercialType == "" {
304304
commercialType = c.CommercialType
305305
}
306306

0 commit comments

Comments
 (0)