Skip to content

Commit

Permalink
Update gitlab_deploy_key.py (#5888)
Browse files Browse the repository at this point in the history
* Update gitlab_deploy_key.py

Change key title on key update

* Create 5888-update-key-title

Add changelog fragment for key title change

* Update changelogs/fragments/5888-update-key-title

Co-authored-by: Felix Fontein <[email protected]>

* Rename 5888-update-key-title to 5888-update-key-title.yml

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 855cbd6)
  • Loading branch information
lapete authored and patchback[bot] committed Jan 25, 2023
1 parent 270754d commit b004a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/5888-update-key-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- gitlab_deploy_key - also update ``title`` and not just ``can_push`` (https://github.com/ansible-collections/community.general/pull/5888).
1 change: 1 addition & 0 deletions plugins/modules/source_control/gitlab/gitlab_deploy_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def create_or_update_deploy_key(self, project, key_title, key_key, options):
changed = True
else:
changed, deploy_key = self.update_deploy_key(self.deploy_key_object, {
'title': key_title,
'can_push': options['can_push']})

self.deploy_key_object = deploy_key
Expand Down

0 comments on commit b004a1f

Please sign in to comment.