mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-14 21:19:12 -07:00
Fix ios_config return on python 2.4 (#23094)
This commit is contained in:
parent
4099eb41b9
commit
1abc73da68
1 changed files with 4 additions and 1 deletions
|
@ -58,7 +58,10 @@ def get_defaults_flag(module):
|
||||||
if line:
|
if line:
|
||||||
commands.add(line.strip().split()[0])
|
commands.add(line.strip().split()[0])
|
||||||
|
|
||||||
return 'all' if 'all' in commands else 'full'
|
if 'all' in commands:
|
||||||
|
return 'all'
|
||||||
|
else:
|
||||||
|
return 'full'
|
||||||
|
|
||||||
def get_config(module, flags=[]):
|
def get_config(module, flags=[]):
|
||||||
cmd = 'show running-config '
|
cmd = 'show running-config '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue