Skip to content

Commit

Permalink
Fixes #1408 (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmj251 authored Jan 18, 2024
1 parent e4b6d2b commit 4c824bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,9 @@ def __init__(self, auth_source=None, profile=None, subscription_id=None, client_
authority=self._adfs_authority_url)

elif self.credentials.get('ad_user') is not None and self.credentials.get('password') is not None:
client_id = self.credentials.get('client_id', '04b07795-8ddb-461a-bbee-02f9e1bf7b46')
client_id = self.credentialss.get('client_id')
if client_id is None:
client_id = '04b07795-8ddb-461a-bbee-02f9e1bf7b46'
self.azure_credential_track2 = user_password.UsernamePasswordCredential(username=self.credentials['ad_user'],
password=self.credentials['password'],
tenant_id=self.credentials.get('tenant', 'organizations'),
Expand Down

0 comments on commit 4c824bf

Please sign in to comment.