From 1abc73da6862c32959377884df037491ca1e98a6 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Thu, 30 Mar 2017 00:19:43 +0200 Subject: [PATCH] Fix ios_config return on python 2.4 (#23094) --- lib/ansible/module_utils/ios.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py index 480c8f9880..35a11e2fdd 100644 --- a/lib/ansible/module_utils/ios.py +++ b/lib/ansible/module_utils/ios.py @@ -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 '