Azure / azure_preview_modules

Azure preview modules for Ansible
https://galaxy.ansible.com/azure/azure_preview_modules
43 stars 49 forks source link

List of Subnets within one Virtual Network not working (wrong method call) #394

Open maximdorko opened 3 years ago

maximdorko commented 3 years ago

When I would like to get the list of all subnets within a Virtual Network, it's not working, because 2 methods are wrong:

Line 214: self.network_client.subnets.get used instead of self.network_client.subnets.list and for "get" Subnet name is mandatory. Please check: https://docs.microsoft.com/en-us/python/api/azure-mgmt-network/azure.mgmt.network.v2020_06_01.operations.subnetsoperations?view=azure-python#list-resource-group-name--virtual-network-name----kwargs-

Line 222: results.append(self.format_item(item)) format_item is not defined. If I change it to format_result it's working.