Skip to content

Commit 6779616

Browse files
author
Gauvain Pocentek
committed
deploy key: add missing attributes
1 parent ce7911a commit 6779616

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/v4/objects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,8 @@ class ProjectKeyManager(CRUDMixin, RESTManager):
12981298
_path = '/projects/%(project_id)s/deploy_keys'
12991299
_obj_cls = ProjectKey
13001300
_from_parent_attrs = {'project_id': 'id'}
1301-
_create_attrs = (('title', 'key'), tuple())
1301+
_create_attrs = (('title', 'key'), ('can_push',))
1302+
_update_attrs = (tuple(), ('title', 'can_push'))
13021303

13031304
@cli.register_custom_action('ProjectKeyManager', ('key_id',))
13041305
@exc.on_http_error(exc.GitlabProjectDeployKeyError)

0 commit comments

Comments
 (0)