1
0
Fork 0
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:
Ricardo Carrillo Cruz 2017-03-30 00:19:43 +02:00 committed by GitHub
parent 4099eb41b9
commit 1abc73da68

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 '