summaryrefslogtreecommitdiff
path: root/ick2/buildsapi.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/buildsapi.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/buildsapi.py')
-rw-r--r--ick2/buildsapi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ick2/buildsapi.py b/ick2/buildsapi.py
index 2d5b5f9..9ee00b7 100644
--- a/ick2/buildsapi.py
+++ b/ick2/buildsapi.py
@@ -24,13 +24,13 @@ class BuildsAPI(ick2.ResourceApiBase): # pragma: no cover
def get_resource_name(self, resource):
return resource['build']
- def create(self, body): # pragma: no cover
+ def create(self, body, **kwargs): # pragma: no cover
raise ick2.MethodNotAllowed('Creating builds directly is not allowed')
- def update(self, body, name): # pragma: no cover
+ def update(self, body, name, **kwargs): # pragma: no cover
raise ick2.MethodNotAllowed('Updating builds directly is not allowed')
- def list(self):
+ def list(self, **kwargs):
result = super().list()
items = result[self._type_name]
items.sort(key=lambda x: x.get('build_id'))