1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[PR #5888/855cbd67 backport][stable-6] Update gitlab_deploy_key.py (#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 855cbd67ae)

Co-authored-by: lapete <github@lapete.de>
This commit is contained in:
patchback[bot] 2023-01-26 06:23:51 +01:00 committed by GitHub
parent c7f7bd6050
commit a146eb3118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -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).

View file

@ -151,6 +151,7 @@ class GitLabDeployKey(object):
changed = True changed = True
else: else:
changed, deploy_key = self.update_deploy_key(self.deploy_key_object, { changed, deploy_key = self.update_deploy_key(self.deploy_key_object, {
'title': key_title,
'can_push': options['can_push']}) 'can_push': options['can_push']})
self.deploy_key_object = deploy_key self.deploy_key_object = deploy_key