From 872b29cd9e4270add5faceea6ab689a2d9f5161d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 20 Apr 2018 17:59:50 +0300 Subject: Fix: ControllerClient.trigger to trigger a project --- ick2/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ick2/client.py') diff --git a/ick2/client.py b/ick2/client.py index bd0586e..008cfd7 100644 --- a/ick2/client.py +++ b/ick2/client.py @@ -218,9 +218,8 @@ class ControllerClient: url = self.url(path) return self._api.put(url, body=obj) - def trigger(self, project_name, pipeline_name): # pragma: no cover - path = '/projects/{}/pipelines/{}/+trigger'.format( - project_name, pipeline_name) + def trigger(self, project_name): # pragma: no cover + path = '/projects/{}/+trigger'.format(project_name) url = self.url(path) return self._api.get_dict(url) -- cgit v1.2.1