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:
parent
d0ae686525
commit
56da3825c6
2 changed files with 2 additions and 2 deletions
|
@ -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']
|
org_id = meraki.params['org_id']
|
||||||
if not org_id:
|
if not org_id:
|
||||||
org_id = meraki.get_org_id(meraki.params['org_name'])
|
org_id = meraki.get_org_id(meraki.params['org_name'])
|
||||||
nets = meraki.get_nets(org_id=org_id)
|
|
||||||
|
|
||||||
net_id = None
|
net_id = None
|
||||||
if net_id is None:
|
if net_id is None:
|
||||||
nets = meraki.get_nets(org_id=org_id)
|
nets = meraki.get_nets(org_id=org_id)
|
||||||
|
|
Loading…
Reference in a new issue