Skip to content

Commit 8dc7f40

Browse files
nejchJohnVillalovos
authored andcommitted
chore(objects): remove non-existing trigger ownership method
1 parent e851eed commit 8dc7f40

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

gitlab/v4/objects/triggers.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from gitlab import cli
2-
from gitlab import exceptions as exc
31
from gitlab.base import RequiredOptional, RESTManager, RESTObject
42
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
53

@@ -10,21 +8,7 @@
108

119

1210
class ProjectTrigger(SaveMixin, ObjectDeleteMixin, RESTObject):
13-
@cli.register_custom_action("ProjectTrigger")
14-
@exc.on_http_error(exc.GitlabOwnershipError)
15-
def take_ownership(self, **kwargs):
16-
"""Update the owner of a trigger.
17-
18-
Args:
19-
**kwargs: Extra options to send to the server (e.g. sudo)
20-
21-
Raises:
22-
GitlabAuthenticationError: If authentication is not correct
23-
GitlabOwnershipError: If the request failed
24-
"""
25-
path = "%s/%s/take_ownership" % (self.manager.path, self.get_id())
26-
server_data = self.manager.gitlab.http_post(path, **kwargs)
27-
self._update_attrs(server_data)
11+
pass
2812

2913

3014
class ProjectTriggerManager(CRUDMixin, RESTManager):

0 commit comments

Comments
 (0)