bugfix in eos shared module for including defaults

This commit is contained in:
Peter Sprygada 2016-01-11 22:40:42 -05:00
parent bcb22b0e1a
commit 935ae2801f

View file

@ -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):