summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGanesh Nalawade <ganesh634@gmail.com>2018-06-29 11:37:38 +0200
committerGitHub <noreply@github.com>2018-06-29 11:37:38 +0200
commite41d427d1b13342347cc723924dc45b1578dc995 (patch)
tree41841f71028c9c9a42ee495699cbfaf1ae693514 /test
parentpowershell PRs should have windows label (#42081) (diff)
downloadansible-e41d427d1b13342347cc723924dc45b1578dc995.tar.xz
ansible-e41d427d1b13342347cc723924dc45b1578dc995.zip
Add run_commands api for ios and vyos cliconf plugin (#42093)
* Add run_commands api for ios and vyos cliconf plugin * Add run_commands api to ios and vyos cliconf plugin * Refactor ios and vyos module_utils to check return code in run_commands * Fix Ci failures
Diffstat (limited to 'test')
-rw-r--r--test/units/modules/network/vyos/test_vyos_command.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/units/modules/network/vyos/test_vyos_command.py b/test/units/modules/network/vyos/test_vyos_command.py
index c64423c45b..4ba25e93ea 100644
--- a/test/units/modules/network/vyos/test_vyos_command.py
+++ b/test/units/modules/network/vyos/test_vyos_command.py
@@ -47,8 +47,7 @@ class TestVyosCommandModule(TestVyosModule):
for item in commands:
try:
- obj = json.loads(item)
- command = obj['command']
+ command = item['command']
except ValueError:
command = item
filename = str(command).replace(' ', '_')