Skip to content

Commit 67aa795

Browse files
Asher256Asher256
authored andcommitted
Delete is used for '/projects/%s/deploy_keys/%s/disable'
1 parent 6310d71 commit 67aa795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def enable_deploy_key(self, project_id, key_id):
12621262
def disable_deploy_key(self, project_id, key_id):
12631263
"""Disable a deploy key in a project."""
12641264
url = '/projects/%s/deploy_keys/%s/disable' % (project_id, key_id)
1265-
r = self.gitlab._raw_post(url)
1265+
r = self.gitlab._raw_delete(url)
12661266
raise_error_from_response(r, GitlabBuildRetryError, 201)
12671267

12681268

0 commit comments

Comments
 (0)