bugfix in eos shared module for including defaults

pull/11111/head
Peter Sprygada 9 years ago
parent bcb22b0e1a
commit 935ae2801f

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

Loading…
Cancel
Save