Skip to content

Commit a00c9ca

Browse files
committed
remove old sudo args
1 parent 16c5b2d commit a00c9ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gitlab/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,22 +538,19 @@ def addprojecthook(self, project_id, url, push=False, issues=False, merge_reques
538538
return False
539539

540540
def editprojecthook(self, project_id, hook_id, url, push=False,
541-
issues=False, merge_requests=False, tag_push=False, sudo=""):
541+
issues=False, merge_requests=False, tag_push=False):
542542
"""
543543
edit an existing hook from a project
544544
:param id_: project id
545545
:param hook_id: hook id
546546
:param url: the new url
547-
:param sudo: do the request as another user
548547
:return: True if success
549548
"""
550549
data = {"id": project_id, "hook_id": hook_id, "url": url}
551550
data['push_events'] = int(bool(push))
552551
data['issues_events'] = int(bool(issues))
553552
data['merge_requests_events'] = int(bool(merge_requests))
554553
data['tag_push_events'] = int(bool(tag_push))
555-
if sudo != "":
556-
data['sudo'] = sudo
557554
request = requests.put("{0}/{1}/hooks/{2}".format(self.projects_url, project_id, hook_id),
558555
headers=self.headers, data=data, verify=self.verify_ssl)
559556
if request.status_code == 200:

0 commit comments

Comments
 (0)