1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix typos in eos module_utils (#24966)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-05-24 15:22:09 +05:30 committed by Trishna Guha
parent 6dc2a6ce8b
commit 2039abbbfa

View file

@ -338,7 +338,7 @@ class Eapi:
for item in to_list(commands):
if is_json(item['command']):
item['command'] = str(item['command']).replace('| json', '')
item['output'] == 'json'
item['output'] = 'json'
if output and output != item['output']:
responses.extend(_send(queue, output))
@ -380,8 +380,8 @@ class Eapi:
cmds.extend(commands)
responses = self.send_request(commands)
if 'error' in response:
err = response['error']
if 'error' in responses:
err = responses['error']
self._module.fail_json(msg=err['message'], code=err['code'])
return responses[1:]