Skip to content

Commit

Permalink
[PR #5888/855cbd67 backport][stable-6] Update gitlab_deploy_key.py (#…
Browse files Browse the repository at this point in the history
…5896)

Update gitlab_deploy_key.py (#5888)

* 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 <felix@fontein.de>

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

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 855cbd6)

Co-authored-by: lapete <github@lapete.de>
  • Loading branch information
patchback[bot] and lapete authored Jan 26, 2023
1 parent c7f7bd6 commit a146eb3
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/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 a146eb3

Please sign in to comment.