Fix ios_config return on python 2.4 (#23094)
parent
4099eb41b9
commit
1abc73da68
|
@ -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…
Reference in New Issue