Fix the get property (#55745) (#55788)

* Fix the get property (#55745)

(cherry picked from commit c7bf3e035b)
This commit is contained in:
Yuwei Zhou 2019-05-18 11:17:06 +08:00 committed by Toshio Kuratomi
parent d8fb3cc7f0
commit 207fff7d36
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Fix cannot get credential when `source_auth` set to `credential_file`.

View 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