mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 12:51:25 -07:00
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):
|
for item in to_list(commands):
|
||||||
if is_json(item['command']):
|
if is_json(item['command']):
|
||||||
item['command'] = str(item['command']).replace('| json', '')
|
item['command'] = str(item['command']).replace('| json', '')
|
||||||
item['output'] == 'json'
|
item['output'] = 'json'
|
||||||
|
|
||||||
if output and output != item['output']:
|
if output and output != item['output']:
|
||||||
responses.extend(_send(queue, output))
|
responses.extend(_send(queue, output))
|
||||||
|
@ -380,8 +380,8 @@ class Eapi:
|
||||||
cmds.extend(commands)
|
cmds.extend(commands)
|
||||||
|
|
||||||
responses = self.send_request(commands)
|
responses = self.send_request(commands)
|
||||||
if 'error' in response:
|
if 'error' in responses:
|
||||||
err = response['error']
|
err = responses['error']
|
||||||
self._module.fail_json(msg=err['message'], code=err['code'])
|
self._module.fail_json(msg=err['message'], code=err['code'])
|
||||||
|
|
||||||
return responses[1:]
|
return responses[1:]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue