Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maximdorko opened this issue Apr 20, 2021 · 0 comments

Comments

@maximdorko
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant