bugfix in eos shared module for including defaults
This commit is contained in:
parent
bcb22b0e1a
commit
935ae2801f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue