Azure / Azure/azure_preview_modules
List of Subnets within one Virtual Network not working (wrong method call)
- Dominant language
- Python
- Stars
- 43
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.