diff --git a/lib/ansible/module_utils/ios.py b/lib/ansible/module_utils/ios.py index 550a2de6d53..f6d6037f808 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]