summaryrefslogtreecommitdiff
path: root/lorrycontroller/workingstate.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/workingstate.py')
-rw-r--r--lorrycontroller/workingstate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lorrycontroller/workingstate.py b/lorrycontroller/workingstate.py
index 082647e..8e4b20e 100644
--- a/lorrycontroller/workingstate.py
+++ b/lorrycontroller/workingstate.py
@@ -38,8 +38,10 @@ class LorryFileRunner(object):
exit, out, err = self.mgr.app.maybe_runcmd(cmdargs)
if exit == 0:
logging.debug("Lorry of %s succeeded: %s" % (self.lorryname, out))
+ self.mgr.lorry_state[self.lorryname]['result'] = "OK"
else:
logging.warn("Lorry of %s failed: %s" % (self.lorryname, err))
+ self.mgr.lorry_state[self.lorryname]['result'] = err
class WorkingStateManager(object):
'''Manage the working state of lorry-controller'''