From bdadf8cf1acddcbec060a529bedafd0abb5913f2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 25 Nov 2017 00:08:39 +0100 Subject: Fix: adapt to new keyword argument from apifw Handle any keyword arguments that may happen in the future. --- ick2/projectapi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ick2/projectapi.py') 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) -- cgit v1.2.1