From ec59650528f631448e9d2f2640ddb0c19280046c Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 13 Sep 2017 22:35:11 -0700 Subject: [PATCH] Fix logic error in nxos get_config. --- lib/ansible/module_utils/nxos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)