mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
fixes ios and eos command modules (#20989)
* returns support for prompt/response over cli * now sends native dict instead of str command * fixes issue with run_commands() in ios to jsonify request * updates unit test cases
This commit is contained in:
parent
62c97cdd3e
commit
d226f31a0f
5 changed files with 8 additions and 10 deletions
|
@ -72,10 +72,10 @@ class test_iosCommandModule(unittest.TestCase):
|
|||
|
||||
for item in commands:
|
||||
try:
|
||||
obj = json.loads(item)
|
||||
obj = json.loads(item['command'])
|
||||
command = obj['command']
|
||||
except ValueError:
|
||||
command = item
|
||||
command = item['command']
|
||||
filename = str(command).replace(' ', '_')
|
||||
output.append(load_fixture(filename))
|
||||
return output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue