mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
0d332dd095
commit
fa8154db40
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ class AzureInventory(object):
|
||||||
# get VMs for requested resource groups
|
# get VMs for requested resource groups
|
||||||
for resource_group in self.resource_groups:
|
for resource_group in self.resource_groups:
|
||||||
try:
|
try:
|
||||||
virtual_machines = self._compute_client.virtual_machines.list(resource_group)
|
virtual_machines = self._compute_client.virtual_machines.list(resource_group.lower())
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
sys.exit("Error: fetching virtual machines for resource group {0} - {1}".format(resource_group, str(exc)))
|
sys.exit("Error: fetching virtual machines for resource group {0} - {1}".format(resource_group, str(exc)))
|
||||||
if self._args.host or self.tags:
|
if self._args.host or self.tags:
|
||||||
|
|
Loading…
Add table
Reference in a new issue