diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-10-06 21:43:45 +0200 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2021-10-08 12:50:07 -0700 |
commit | 8dc7f40044ce8c478769f25a87c5ceb1aa76b595 (patch) | |
tree | 7f3006cbf04631fdd1c93c4ac99b607a467d9b61 /gitlab/v4/objects/triggers.py | |
parent | e851eed42d56718699261495698c0ac6ad6c6b22 (diff) | |
download | gitlab-8dc7f40044ce8c478769f25a87c5ceb1aa76b595.tar.gz |
chore(objects): remove non-existing trigger ownership method
Diffstat (limited to 'gitlab/v4/objects/triggers.py')
-rw-r--r-- | gitlab/v4/objects/triggers.py | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gitlab/v4/objects/triggers.py b/gitlab/v4/objects/triggers.py index 0eff8ac..f203d93 100644 --- a/gitlab/v4/objects/triggers.py +++ b/gitlab/v4/objects/triggers.py @@ -1,5 +1,3 @@ -from gitlab import cli -from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin @@ -10,21 +8,7 @@ __all__ = [ class ProjectTrigger(SaveMixin, ObjectDeleteMixin, RESTObject): - @cli.register_custom_action("ProjectTrigger") - @exc.on_http_error(exc.GitlabOwnershipError) - def take_ownership(self, **kwargs): - """Update the owner of a trigger. - - Args: - **kwargs: Extra options to send to the server (e.g. sudo) - - Raises: - GitlabAuthenticationError: If authentication is not correct - GitlabOwnershipError: If the request failed - """ - path = "%s/%s/take_ownership" % (self.manager.path, self.get_id()) - server_data = self.manager.gitlab.http_post(path, **kwargs) - self._update_attrs(server_data) + pass class ProjectTriggerManager(CRUDMixin, RESTManager): |