mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
meraki_content_filtering - Remove redundant API call with get_nets() (#55531)
* Remove redundant API call with get_nets() * Add changelog fragment
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user