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:
parent
fe520a6b09
commit
855cbd67ae
2 changed files with 3 additions and 0 deletions
2
changelogs/fragments/5888-update-key-title.yml
Normal file
2
changelogs/fragments/5888-update-key-title.yml
Normal 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).
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue