Skip to content

Commit

Permalink
Merge pull request #304 from prufrock/add-missing-token-vars
Browse files Browse the repository at this point in the history
Add missing context token attributes
  • Loading branch information
ecordell authored Oct 3, 2023
2 parents e4f43e3 + cfb996b commit 7225cfb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/storage/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ func DefaultToken(overrideEndpoint, overrideAPIToken string, cs ConfigStore, ss
}

return Token{
Name: token.Name,
Endpoint: stringz.DefaultEmpty(overrideEndpoint, token.Endpoint),
APIToken: stringz.DefaultEmpty(overrideAPIToken, token.APIToken),
Insecure: token.Insecure,
Name: token.Name,
Endpoint: stringz.DefaultEmpty(overrideEndpoint, token.Endpoint),
APIToken: stringz.DefaultEmpty(overrideAPIToken, token.APIToken),
Insecure: token.Insecure,
NoVerifyCA: token.NoVerifyCA,
CACert: token.CACert,
}, nil
}

Expand Down

0 comments on commit 7225cfb

Please sign in to comment.