Skip to content

Commit

Permalink
Update small
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred-sun committed Jan 6, 2022
1 parent d88b1e2 commit 275e6de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,14 +1525,13 @@ def __init__(self, auth_source=None, profile=None, subscription_id=None, client_

elif self.credentials.get('ad_user') is not None and self.credentials.get('password') is not None:
tenant = self.credentials.get('tenant')
tenant_track2 = self.credentials.get('tenant')
if not tenant:
tenant = 'common' # SDK default
tenant_track2 = 'organizations' # SDK default
else:
tenant_track2 = self.credentials.get('tenant')

self.azure_credentials = UserPassCredentials(self.credentials['ad_user'],
self.credentials['password'],
self.azure_credentials = UserPassCredentials(username=self.credentials['ad_user'],
password=self.credentials['password'],
tenant=tenant,
cloud_environment=self._cloud_environment,
verify=self._cert_validation_mode == 'validate')
Expand Down

0 comments on commit 275e6de

Please sign in to comment.