The patch fixes the crash in case of missing test tool on slave machine.
Without the patch the controller crashes with an exception because 'cmd'
is undefined.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Controller/Task.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index ad7fb68..e23ad9d 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -252,7 +252,7 @@ class HostAPI(object):
else:
msg = "Module '%s' not found on the controller"\
% mod
- raise TaskError(msg, cmd)
+ raise TaskError(msg)
for tool in tools:
if tool in res_table['tools']:
@@ -260,7 +260,7 @@ class HostAPI(object):
else:
msg = "Tool '%s' not found on the controller"\
% tool
- raise TaskError(msg, cmd)
+ raise TaskError(msg)
self._m.sync_resources(sync_table)
--
1.8.1.4
Show replies by date