Fix typos in eos module_utils (#24966)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/23222/merge
Abhijeet Kasurde 8 years ago committed by Trishna Guha
parent 6dc2a6ce8b
commit 2039abbbfa

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

Loading…
Cancel
Save