summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/v4/objects.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 67f80d0..7adf82c 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -2624,8 +2624,9 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
"""
path = '/projects/%s/trigger/pipeline' % self.get_id()
post_data = {'ref': ref, 'token': token, 'variables': variables}
- attrs = self.manager.gitlab.http_post(path, post_data=post_data, **kwargs)
- return ProjectPipeline(project.pipelines, attrs)
+ attrs = self.manager.gitlab.http_post(
+ path, post_data=post_data, **kwargs)
+ return ProjectPipeline(self.pipelines, attrs)
@cli.register_custom_action('Project')
@exc.on_http_error(exc.GitlabHousekeepingError)