commit 6f9c5d395a282c02467806caceb8402103fea6c6
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Mon Jun 30 12:12:13 2014 +0200
Controller: Fix command description reference
There's a bug in handling command description 'desc' parameter. Code
references variable 'desc' but instead we have to use 'desc' key of
command dictionary.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/NetTestController.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/NetTestController.py b/lnst/Controller/NetTestController.py
index 527c640..3c33d68 100644
--- a/lnst/Controller/NetTestController.py
+++ b/lnst/Controller/NetTestController.py
@@ -660,7 +660,7 @@ class NetTestController:
logging.info("Executing command: [%s]", str_command(command))
if "desc" in command:
- logging.info("Cmd description: %s", desc)
+ logging.info("Cmd description: %s", command["desc"])
if command["type"] == "ctl_wait":
sleep(command["seconds"])
Show replies by date