commit 40d832d9b7a15b0f0947ddb6cf184aafe754b59f
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Tue Jul 8 17:35:23 2014 +0200
TaskAPI: Fix crash on missing test tool
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>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/Task.py | 4 ++--
1 files 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)
Show replies by date