From c7bf3e035b3cc3304b0dcafc3437ba8ea0db30b4 Mon Sep 17 00:00:00 2001 From: Yuwei Zhou Date: Fri, 26 Apr 2019 10:07:58 +0800 Subject: [PATCH] Fix the get property (#55745) --- lib/ansible/module_utils/azure_rm_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/azure_rm_common.py b/lib/ansible/module_utils/azure_rm_common.py index a25fa12cdd..64db8b8350 100644 --- a/lib/ansible/module_utils/azure_rm_common.py +++ b/lib/ansible/module_utils/azure_rm_common.py @@ -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