summaryrefslogtreecommitdiff
path: root/lorrycontroller/givemejob.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/givemejob.py')
-rw-r--r--lorrycontroller/givemejob.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lorrycontroller/givemejob.py b/lorrycontroller/givemejob.py
index ee998ea..2f7580f 100644
--- a/lorrycontroller/givemejob.py
+++ b/lorrycontroller/givemejob.py
@@ -69,7 +69,7 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
return (lorry_info['running_job'] is None and due <= now)
@staticmethod
- def get_upstream_host_repo_metadata(lorry_info):
+ def get_upstream_host_repo_metadata(statedb, lorry_info):
assert lorry_info['from_host']
assert lorry_info['from_path']
@@ -172,7 +172,7 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute):
host_name = lorry_info['from_host']
if host_name:
- metadata = self.get_upstream_host_repo_metadata(lorry_info)
+ metadata = self.get_upstream_host_repo_metadata(statedb, lorry_info)
else:
host_name, metadata = self.get_single_repo_metadata(lorry_info)