From 4e087bb14fd4647d46bd9ad9e3cea4e069ecf175 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 11 Jan 2016 22:40:42 -0500 Subject: [PATCH] bugfix in eos shared module for including defaults --- lib/ansible/module_utils/eos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py index e3782a9d097..d4656b11915 100644 --- a/lib/ansible/module_utils/eos.py +++ b/lib/ansible/module_utils/eos.py @@ -179,13 +179,13 @@ class EosModule(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] else: resp = self.execute(cmd, encoding='text') - return resp[0]['output'] + return resp[0] def get_module(**kwargs):