diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-25 00:08:39 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-25 00:08:39 +0100 |
commit | bdadf8cf1acddcbec060a529bedafd0abb5913f2 (patch) | |
tree | 272cec39f0f4f7b373ba3fe564ac00f00ab1b688 /ick2/projectapi.py | |
parent | 1e141c37b49536fe65e2c7dde3eee69b14b3eb56 (diff) | |
download | ick2-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/projectapi.py')
-rw-r--r-- | ick2/projectapi.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ick2/projectapi.py b/ick2/projectapi.py index 89cad8f..b0c9da1 100644 --- a/ick2/projectapi.py +++ b/ick2/projectapi.py @@ -48,7 +48,7 @@ class ProjectAPI(ick2.ResourceApiBase): }, ] - def get_pipeline(self, project, pipeline): + def get_pipeline(self, project, pipeline, **kwargs): p = self._state.get_resource(self._type_name, project) for pl in p['pipelines']: if pl['name'] == pipeline: @@ -58,7 +58,7 @@ class ProjectAPI(ick2.ResourceApiBase): raise ick2.NotFound() def set_pipeline_callback( - self, body, project, pipeline): # pragma: no cover + self, body, project, pipeline, **kwargs): # pragma: no cover return self.set_pipeline(body['status'], project, pipeline) def set_pipeline(self, state, project, pipeline): @@ -80,5 +80,6 @@ class ProjectAPI(ick2.ResourceApiBase): # This needs to go away as it is not protected. Once an IDP is # added. - def trigger_pipeline(self, project, pipeline): # pragma: no cover + def trigger_pipeline( + self, project, pipeline, **kwargs): # pragma: no cover return self.set_pipeline('triggered', project, pipeline) |