1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Support upper/lower case resource groups
This commit is contained in:
Miguel C 2018-08-13 05:24:14 +01:00 committed by Yunge Zhu
parent 0d332dd095
commit fa8154db40

View file

@ -649,7 +649,7 @@ class AzureInventory(object):
# get VMs for requested resource groups
for resource_group in self.resource_groups:
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:
sys.exit("Error: fetching virtual machines for resource group {0} - {1}".format(resource_group, str(exc)))
if self._args.host or self.tags: