summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-28 07:39:26 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-28 07:39:26 +0200
commit677961624fbc5ab190e581ae89c9f0317ac3029e (patch)
treebe2915a11c704dc3117ac5bb7f0530f08f31e45f /gitlab
parentce7911a858c17c1cf1363daca2c650d66c66dd4b (diff)
downloadgitlab-677961624fbc5ab190e581ae89c9f0317ac3029e.tar.gz
deploy key: add missing attributes
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/v4/objects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 6bf55ab..da2f6ed 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1298,7 +1298,8 @@ class ProjectKeyManager(CRUDMixin, RESTManager):
_path = '/projects/%(project_id)s/deploy_keys'
_obj_cls = ProjectKey
_from_parent_attrs = {'project_id': 'id'}
- _create_attrs = (('title', 'key'), tuple())
+ _create_attrs = (('title', 'key'), ('can_push',))
+ _update_attrs = (tuple(), ('title', 'can_push'))
@cli.register_custom_action('ProjectKeyManager', ('key_id',))
@exc.on_http_error(exc.GitlabProjectDeployKeyError)