summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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(' ', '_')