Fix ios_config return on python 2.4 ()

This commit is contained in:
Ricardo Carrillo Cruz 2017-03-30 00:19:43 +02:00
parent 18dedd985a
commit af83d4d4df

View file

@ -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 '