File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1249,23 +1249,23 @@ class ProjectKey(GitlabObject):
1249
1249
requiredUrlAttrs = ['project_id' ]
1250
1250
requiredCreateAttrs = ['title' , 'key' ]
1251
1251
1252
-
1253
- class ProjectKeyManager (BaseManager ):
1254
- obj_cls = ProjectKey
1255
-
1256
1252
def enable_deploy_key (self , project_id , key_id ):
1257
- """Enable a deploy key in a project."""
1253
+ """Enable a deploy key for a project."""
1258
1254
url = '/projects/%s/deploy_keys/%s/enable' % (project_id , key_id )
1259
1255
r = self .gitlab ._raw_post (url )
1260
1256
raise_error_from_response (r , GitlabBuildRetryError , 201 )
1261
1257
1262
1258
def disable_deploy_key (self , project_id , key_id ):
1263
- """Disable a deploy key in a project."""
1259
+ """Disable a deploy key for a project."""
1264
1260
url = '/projects/%s/deploy_keys/%s/disable' % (project_id , key_id )
1265
1261
r = self .gitlab ._raw_delete (url )
1266
1262
raise_error_from_response (r , GitlabBuildRetryError , 201 )
1267
1263
1268
1264
1265
+ class ProjectKeyManager (BaseManager ):
1266
+ obj_cls = ProjectKey
1267
+
1268
+
1269
1269
class ProjectEvent (GitlabObject ):
1270
1270
_url = '/projects/%(project_id)s/events'
1271
1271
canGet = 'from_list'
You can’t perform that action at this time.
0 commit comments