* Fix the get property (#55745)
(cherry picked from commit c7bf3e035b
)
This commit is contained in:
parent
d8fb3cc7f0
commit
207fff7d36
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/55745-azure_rm_common.yaml
Normal file
2
changelogs/fragments/55745-azure_rm_common.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- Fix cannot get credential when `source_auth` set to `credential_file`.
|
|
@ -1226,7 +1226,7 @@ class AzureRMAuth(object):
|
|||
|
||||
if auth_source == 'credential_file':
|
||||
self.log("Retrieving credentials from credential file")
|
||||
profile = params.get('profile', 'default')
|
||||
profile = params.get('profile') or 'default'
|
||||
default_credentials = self._get_profile(profile)
|
||||
return default_credentials
|
||||
|
||||
|
|
Loading…
Reference in a new issue