Skip to content

Commit f68d358

Browse files
author
Quentin Perez
committed
Use the same pattern for environment variables
1 parent e735573 commit f68d358

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11541154

11551155
### master (unreleased)
11561156

1157+
* SCALEWAY_VERBOSE_API is now SCW_VERBOSE_API
1158+
* SCALEWAY_TLSVERIFY is now SCW_TLSVERIFY
11571159
* Add a warn message when using `ssh exec` on host without public ip nor gateway ([#171](https://github.com/scaleway/scaleway-cli/issues/171))
11581160
* Display `ssh-host-fingerprints` when it's available ([#194](https://github.com/scaleway/scaleway-cli/issues/194))
11591161
* Support of `scw rmi` snapshot|volume ([#258](https://github.com/scaleway/scaleway-cli/issues/258))

pkg/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,15 +797,15 @@ func NewScalewayAPI(apiEndPoint, accountEndPoint, organization, token string) (*
797797
Organization: organization,
798798
Token: token,
799799
Cache: cache,
800-
verbose: os.Getenv("SCALEWAY_VERBOSE_API") != "",
800+
verbose: os.Getenv("SCW_VERBOSE_API") != "",
801801
password: "",
802802

803803
// internal
804804
anonuuid: *anonuuid.New(),
805805
client: &http.Client{},
806806
}
807807

808-
if os.Getenv("SCALEWAY_TLSVERIFY") == "0" {
808+
if os.Getenv("SCW_TLSVERIFY") == "0" {
809809
s.client.Transport = &http.Transport{
810810
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
811811
}

pkg/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func AttachToSerial(serverID string, apiToken string) (*gottyclient.Client, chan
198198
return nil, nil, err
199199
}
200200

201-
if os.Getenv("SCALEWAY_TLSVERIFY") == "0" {
201+
if os.Getenv("SCW_TLSVERIFY") == "0" {
202202
gottycli.SkipTLSVerify = true
203203
}
204204

0 commit comments

Comments
 (0)