Fix typos in eos module_utils (#24966)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
6dc2a6ce8b
commit
2039abbbfa
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue