mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-04 00:01:30 -07:00
Fix dangerous default args. (#29839)
This commit is contained in:
parent
5caa47feb9
commit
68aeaa58a8
50 changed files with 253 additions and 87 deletions
|
@ -84,7 +84,11 @@ def setup_mod_conn(placeboify, params):
|
|||
return m, conn
|
||||
|
||||
|
||||
def make_params(cgw, vgw, tags={}, filters={}, routes=[]):
|
||||
def make_params(cgw, vgw, tags=None, filters=None, routes=None):
|
||||
tags = {} if tags is None else tags
|
||||
filters = {} if filters is None else filters
|
||||
routes = [] if routes is None else routes
|
||||
|
||||
return {'customer_gateway_id': cgw,
|
||||
'static_only': True,
|
||||
'vpn_gateway_id': vgw,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue