summaryrefslogtreecommitdiff
path: root/ick2/workapi.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-25 00:08:39 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-25 00:08:39 +0100
commitbdadf8cf1acddcbec060a529bedafd0abb5913f2 (patch)
tree272cec39f0f4f7b373ba3fe564ac00f00ab1b688 /ick2/workapi.py
parent1e141c37b49536fe65e2c7dde3eee69b14b3eb56 (diff)
downloadick2-bdadf8cf1acddcbec060a529bedafd0abb5913f2.tar.gz
Fix: adapt to new keyword argument from apifw
Handle any keyword arguments that may happen in the future.
Diffstat (limited to 'ick2/workapi.py')
-rw-r--r--ick2/workapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ick2/workapi.py b/ick2/workapi.py
index 8c2572d..81bff66 100644
--- a/ick2/workapi.py
+++ b/ick2/workapi.py
@@ -38,7 +38,7 @@ class WorkAPI(ick2.APIbase):
},
]
- def get_work(self, worker):
+ def get_work(self, worker, **kwargs):
worker_state = self._workers.get_worker(worker)
if not worker_state.get('doing'):
project, pipeline = self._pick_triggered_pipeline()
@@ -103,7 +103,7 @@ class WorkAPI(ick2.APIbase):
}
self._state.add_resource('log', str(build_id), log)
- def update_work(self, update):
+ def update_work(self, update, **kwargs):
if 'worker' not in update: # pragma: no cover
raise ick2.BadUpdate('no worker specified')