Skip to content

Commit

Permalink
use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinaperalta committed Jun 30, 2021
1 parent 94ca728 commit ddd79dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/azidentity/managed_identity_credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func NewManagedIdentityCredential(id string, options *ManagedIdentityCredentialO
client.msiType = msiType
// check if no clientID is specified then check if it exists in an environment variable
if len(id) == 0 {
if options.ID == 1 {
if options.ID == ResourceID {
id = os.Getenv("AZURE_RESOURCE_ID")
} else {
id = os.Getenv("AZURE_CLIENT_ID")
Expand Down

0 comments on commit ddd79dc

Please sign in to comment.