bugfix in eos shared module for including defaults

pull/13924/head
Peter Sprygada 9 years ago
parent 1f7fbf29f9
commit 4e087bb14f

@ -179,13 +179,13 @@ class EosModule(AnsibleModule):
def get_config(self): def get_config(self):
cmd = 'show running-config' cmd = 'show running-config'
if self.params['include_defaults']: if self.params.get('include_defaults'):
cmd += ' all' cmd += ' all'
if self.params['transport'] == 'cli': if self.params['transport'] == 'cli':
return self.execute(cmd)[0] return self.execute(cmd)[0]
else: else:
resp = self.execute(cmd, encoding='text') resp = self.execute(cmd, encoding='text')
return resp[0]['output'] return resp[0]
def get_module(**kwargs): def get_module(**kwargs):

Loading…
Cancel
Save