meraki_content_filtering - Remove redundant API call with get_nets() (#55531)

* Remove redundant API call with get_nets()

* Add changelog fragment
pull/55750/head
Kevin Breit 6 years ago committed by Adam Miller
parent d0ae686525
commit 56da3825c6

@ -0,0 +1,2 @@
bugfixes:
- "meraki_static_route - Module would make unnecessary API calls to Meraki when ``net_id`` is specified in task."

@ -172,8 +172,6 @@ def main():
org_id = meraki.params['org_id']
if not org_id:
org_id = meraki.get_org_id(meraki.params['org_name'])
nets = meraki.get_nets(org_id=org_id)
net_id = None
if net_id is None:
nets = meraki.get_nets(org_id=org_id)

Loading…
Cancel
Save