Skip to content

Commit 4740b7b

Browse files
committed
Merge pull request #327 from QuentinPerez/fix-CT
Fix ct
2 parents a497a74 + ecabacd commit 4740b7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11831183

11841184
### master (unreleased)
11851185

1186-
* No entry
1186+
* Fix bug when using SCW_COMMERCIAL_TYPE variable
11871187

11881188
View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.8.1...master)
11891189

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)