summaryrefslogtreecommitdiff
path: root/lorry-controller
diff options
context:
space:
mode:
Diffstat (limited to 'lorry-controller')
-rwxr-xr-xlorry-controller10
1 files changed, 7 insertions, 3 deletions
diff --git a/lorry-controller b/lorry-controller
index 9d96b9a..ce60989 100755
--- a/lorry-controller
+++ b/lorry-controller
@@ -79,6 +79,8 @@ class LorryController(cliapp.Application):
'git/lorry-controller.conf')
with WorkingStateManager(self) as mgr:
+ # Update any troves
+ self.conf.update_troves(mgr)
prev_lorries = set(mgr.lorry_state.keys())
cur_lorries = set(self.conf.lorries.keys())
logging.debug("Starting processing. Previously %d lorries "
@@ -155,9 +157,11 @@ class LorryController(cliapp.Application):
if earliest_due is None or due < earliest_due:
earliest_due = due
what_early_due = lorry
-
- logging.debug("Lorried %d. %s due in %d seconds" % (
- lorried, what_early_due, int(earliest_due - now)))
+ if earliest_due is None:
+ logging.debug("Lorried %d. No idea what's next." % lorried)
+ else:
+ logging.debug("Lorried %d. %s due in %d seconds" % (
+ lorried, what_early_due, int(earliest_due - now)))
logging.debug("All done.")
def rungit(self, args):
self.runcmd(['git']+args, cwd=os.path.join(self.settings['work-area'],