summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Wilson <george.wilson@iproov.com>2018-05-03 01:34:28 +0100
committerMatt Davis <nitzmahone@users.noreply.github.com>2018-05-02 17:34:28 -0700
commit9e1ce48b1ce32e02291ace55675b3e1cfebc0447 (patch)
treef29d244f993c4ce4ae532ce758cfabb89c29080e
parentd68900d728570a647b696e6f5e3b7c4ce70b0129 (diff)
downloadansible-9e1ce48b1ce32e02291ace55675b3e1cfebc0447.tar.gz
Backport part of #33221 (commit: 8fa1373a67da1801bd1df121851d6a619d002499) to fix azure functionapp ansible modules fataling due to a bad URL (#36322)
-rw-r--r--lib/ansible/module_utils/azure_rm_common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/azure_rm_common.py b/lib/ansible/module_utils/azure_rm_common.py
index abcebe5333..cbbb99990d 100644
--- a/lib/ansible/module_utils/azure_rm_common.py
+++ b/lib/ansible/module_utils/azure_rm_common.py
@@ -758,7 +758,8 @@ class AzureRMModuleBase(object):
def web_client(self):
self.log('Getting web client')
if not self._web_client:
- self._web_client = self.get_mgmt_svc_client(WebSiteManagementClient, base_url=self.base_url)
+ self._web_client = self.get_mgmt_svc_client(WebSiteManagementClient,
+ base_url=self._cloud_environment.endpoints.resource_manager)
return self._web_client
@property