mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
|
||||
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=[]):
|
||||
cmd = 'show running-config '
|
||||
|
|
Loading…
Reference in a new issue