Romain dartigues fixes (#29169)
* cloud: azure: fix typo introduced in commit16d23e9
The commit "Add reference to VNET resource group (#26052)" removed an used variable. * network: aos: error hint never shown (cherry picked from commit6797221107
)
This commit is contained in:
parent
1478d0fcf3
commit
4e5051fe00
2 changed files with 4 additions and 5 deletions
|
@ -1431,7 +1431,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
|
|||
try:
|
||||
self.network_client.virtual_networks.list(virtual_network_resource_group, self.virtual_network_name)
|
||||
virtual_network_name = self.virtual_network_name
|
||||
except CloudError:
|
||||
except CloudError as exc:
|
||||
self.fail("Error: fetching virtual network {0} - {1}".format(self.virtual_network_name, str(exc)))
|
||||
|
||||
else:
|
||||
|
|
|
@ -150,12 +150,11 @@ def create_blueprint(module, aos, name):
|
|||
|
||||
except:
|
||||
exc = get_exception()
|
||||
msg = "Unable to create blueprint: %s" % exc.message
|
||||
if 'UNPROCESSABLE ENTITY' in exc.message:
|
||||
msg = 'likely missing dependencies'
|
||||
else:
|
||||
msg = exc.message
|
||||
msg+= ' (likely missing dependencies)'
|
||||
|
||||
module.fail_json(msg="Unable to create blueprint: %s" % exc.message)
|
||||
module.fail_json(msg=msg)
|
||||
|
||||
return blueprint
|
||||
|
||||
|
|
Loading…
Reference in a new issue