From 4d3aa721439f98ff4a41579878e87aeb5eaf97f2 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 11 Jan 2016 22:41:06 -0500 Subject: [PATCH] bugfix in nxos shared module for including defaults --- 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 5bde5cccd1..f75ac5123f 100644 --- a/lib/ansible/module_utils/nxos.py +++ b/lib/ansible/module_utils/nxos.py @@ -180,7 +180,7 @@ class NxosModule(AnsibleModule): def get_config(self): cmd = 'show running-config' - if self.params['include_defaults']: + if self.params.get('include_defaults'): cmd += ' all' if self.params['transport'] == 'cli': return self.execute(cmd)[0]