Skip to content

Commit

Permalink
Merge pull request #55 from newrelic/fix/api-key-env-var-collisions
Browse files Browse the repository at this point in the history
fix(client): resolve api key env var collision
  • Loading branch information
ctrombley authored Feb 26, 2020
2 parents 01b7d45 + cc024d5 commit 896db7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func CreateNRClient(cfg *config.Config, creds *credentials.Credentials) (*newrel
}

func applyOverrides(p *credentials.Profile) *credentials.Profile {
envAPIKey := os.Getenv("NEWRELIC_API_KEY")
envAPIKey := os.Getenv("NEWRELIC_PERSONAL_API_KEY")
envAdminAPIKey := os.Getenv("NEWRELIC_ADMIN_API_KEY")
envRegion := os.Getenv("NEWRELIC_REGION")

Expand Down

0 comments on commit 896db7b

Please sign in to comment.