diff --git a/lib/ansible/module_utils/nxos.py b/lib/ansible/module_utils/nxos.py index f1aa120a6a..9b183bb0ac 100644 --- a/lib/ansible/module_utils/nxos.py +++ b/lib/ansible/module_utils/nxos.py @@ -115,7 +115,7 @@ class Cli: def get_config(self, flags=None): """Retrieves the current config from the device or cache """ - flags = [] if flags is None else [] + flags = [] if flags is None else flags cmd = 'show running-config ' cmd += ' '.join(flags)