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

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>
This commit is contained in:
lapete 2023-01-25 23:03:35 +01:00 committed by GitHub
parent fe520a6b09
commit 855cbd67ae
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