On Mon, Aug 22, 2016 at 10:20:29AM +0200, Jiri Pirko wrote:
From: Jiri Pirko <jiri(a)mellanox.com>
Fixes: bc9c6296e43 ("cmd: allow to parse JSON stdout into dictionary")
Signed-off-by: Jiri Pirko <jiri(a)mellanox.com>
---
lnst/Common/NetTestCommand.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Common/NetTestCommand.py b/lnst/Common/NetTestCommand.py
index f91cc37..30aaabf 100644
--- a/lnst/Common/NetTestCommand.py
+++ b/lnst/Common/NetTestCommand.py
@@ -407,7 +407,7 @@ class NetTestCommandExec(NetTestCommandGeneric):
stdout, stderr = self.exec_from(self._command["from"],
self._command["command"])
else:
- json = True if "json" in self._command else False
+ json = True if "json" in self._command and
self._command["json"] else False
stdout, stderr = self.exec_cmd(self._command["command"],
json=json)
res_data = {"stdout": stdout, "stderr": stderr}
self.set_pass(res_data)
--
2.5.5
ack