Skip to content

Commit

Permalink
Update keysource.go
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkaplinsky committed Jan 18, 2022
1 parent ea8b3bb commit c0dc484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcpkms/keysource.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (key MasterKey) ToMap() map[string]interface{} {
// Credentials as either a path to a file, or directly as an environment variable
// in JSON format.
func getDefaultApplicationCredentials() (token []byte, err error) {
var defaultCredentials = os.Getenv("GOOGLE_APPLICATION_CREDENTIALS")
var defaultCredentials = os.Getenv("GOOGLE_CREDENTIALS")

if _, err := os.Stat(defaultCredentials); err == nil {
if token, err = ioutil.ReadFile(defaultCredentials); err != nil {
Expand Down

0 comments on commit c0dc484

Please sign in to comment.