mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix dangerous default args. (#29839)
This commit is contained in:
@@ -77,7 +77,9 @@ def get_defaults_flag(module):
|
||||
return ['full']
|
||||
|
||||
|
||||
def get_config(module, flags=[]):
|
||||
def get_config(module, flags=None):
|
||||
flags = [] if flags is None else flags
|
||||
|
||||
cmd = 'show running-config '
|
||||
cmd += ' '.join(flags)
|
||||
cmd = cmd.strip()
|
||||
|
||||
Reference in New Issue
Block a user