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 '