File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ func createCmdRunFunc(
8888 storedData := cliStorage .Data ()
8989
9090 token := storedData .Token
91- if token == "" {
92- token = os . Getenv ( constants . CliTokenEnvVar )
91+ if envToken , ok := os . LookupEnv ( constants . CliTokenEnvVar ); ok {
92+ token = envToken
9393 }
9494 if token == "" {
9595 if cmd .guestRunFunc != nil {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ zcli login <your_token>
1515Alternatively, you can use the ZEROPS_TOKEN environment variable to authenticate:
1616export ZEROPS_TOKEN="<your_token>"
1717
18- Note: The stored authentication data created by the login command takes precedence over the environment variable if both are present.
18+ Note: The environment variable takes precedence over stored authentication data created by the login command, if both are present.
1919
2020Replace <your_token> with the authentication token generated from your Zerops account.
2121
You can’t perform that action at this time.
0 commit comments