mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
bug fixes for shell exec command (#20988)
* fixes up eos_local to call appropriate method * fixes up ios_cli to call appropriate method * moves json conversion to eos
This commit is contained in:
parent
1df14ed121
commit
bce0bd401e
4 changed files with 41 additions and 61 deletions
|
@ -62,6 +62,7 @@ def run_commands(module, commands):
|
|||
responses = list()
|
||||
|
||||
for cmd in to_list(commands):
|
||||
cmd = module.jsonify(cmd)
|
||||
rc, out, err = module.exec_command(cmd)
|
||||
|
||||
if rc != 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue