Bug | Error message being swallowed in azure_rm_common.py (#33298)

This commit is contained in:
ZhijunZhao 2017-11-28 11:03:41 +08:00 committed by ansibot
parent b10859c192
commit a18b7d9b01
8 changed files with 11 additions and 28 deletions

View file

@ -324,11 +324,7 @@ class AzureRMLoadBalancer(AzureRMModuleBase):
pip = None
load_balancer_props = dict()
try:
resource_group = self.get_resource_group(self.resource_group)
except CloudError:
self.fail('resource group {} not found'.format(self.resource_group))
resource_group = self.get_resource_group(self.resource_group)
if not self.location:
self.location = resource_group.location
load_balancer_props['location'] = self.location