diff options
-rw-r--r-- | lorrycontroller/givemejob.py | 3 | ||||
-rw-r--r-- | lorrycontroller/statedb.py | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lorrycontroller/givemejob.py b/lorrycontroller/givemejob.py index bfad6c5..55f9821 100644 --- a/lorrycontroller/givemejob.py +++ b/lorrycontroller/givemejob.py @@ -80,6 +80,9 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute): def copy_repository_metadata(self, lorry_info): '''Copy project.head and project.description to the local Trove.''' + assert lorry_info['from_trovehost'] + assert lorry_info['from_path'] + try: remote_config = self.get_gitano_config( lorry_info['from_trovehost'], lorry_info['from_path']) diff --git a/lorrycontroller/statedb.py b/lorrycontroller/statedb.py index b49da60..1f45593 100644 --- a/lorrycontroller/statedb.py +++ b/lorrycontroller/statedb.py @@ -314,10 +314,10 @@ class StateDB(object): c = self.get_cursor() c.execute( 'INSERT INTO lorries ' - '(path, text, from_trovehost, last_run, interval, ' + '(path, text, from_trovehost, from_path, last_run, interval, ' 'running_job, kill_job) ' - 'VALUES (?, ?, ?, ?, ?, ?, ?)', - (path, text, from_trovehost, 0, interval, None, 0)) + 'VALUES (?, ?, ?, ?, ?, ?, ?, ?)', + (path, text, from_trovehost, from_path, 0, interval, None, 0)) else: c = self.get_cursor() c.execute( |