Fix the get property (#55745)

This commit is contained in:
Yuwei Zhou 2019-04-26 10:07:58 +08:00 committed by Zim Kalinowski
parent dbc64ae64c
commit c7bf3e035b

View file

@ -1227,7 +1227,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