From a758806287e40a1eb591cc6f29d5f936f745d390 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 11 Jan 2016 22:40:54 -0500 Subject: [PATCH] bugfix in ios shared module for including defaults --- lib/ansible/module_utils/ios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py index 550a2de6d5..f6d6037f80 100644 --- a/lib/ansible/module_utils/ios.py +++ b/lib/ansible/module_utils/ios.py @@ -102,7 +102,7 @@ class IosModule(AnsibleModule): def get_config(self): cmd = 'show running-config' - if self.params['include_defaults']: + if self.params.get('include_defaults'): cmd += ' all' return self.execute(cmd)[0]