Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cmdBuilder/createRunFunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func createCmdRunFunc(
storedData := cliStorage.Data()

token := storedData.Token
if token == "" {
token = os.Getenv(constants.CliTokenEnvVar)
if envToken, ok := os.LookupEnv(constants.CliTokenEnvVar); ok {
token = envToken
}
if token == "" {
if cmd.guestRunFunc != nil {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ zcli login <your_token>
Alternatively, you can use the ZEROPS_TOKEN environment variable to authenticate:
export ZEROPS_TOKEN="<your_token>"

Note: The stored authentication data created by the login command takes precedence over the environment variable if both are present.
Note: The environment variable takes precedence over stored authentication data created by the login command, if both are present.

Replace <your_token> with the authentication token generated from your Zerops account.

Expand Down