community.general
community.general copied to clipboard
gitlab_user: fix, ssh keys in gitlab are identified by their id
SUMMARY
Gitlab ssh keys are identified by their public key value (excluding the comment). One cannot add the same key twice. So when adding an ssh key with gitlab_user
with the same value but a different name, gitlab_user
tried to add the key to the user but failed with http status code 400. Also when adding a different key with the same name, gitlab_user
assumed the key already exists and did not update the Gitlab users keys.
Fixes #6516
ISSUE TYPE
- Bugfix Pull Request
COMPONENT NAME
gitlab_user
ADDITIONAL INFORMATION
TASK [redacted : redacted] *****************************************************************************************
Donnerstag 07 September 2023 15:09:23 +0200 (0:00:00.102) 0:00:13.898 ***
Donnerstag 07 September 2023 15:09:23 +0200 (0:00:00.102) 0:00:13.897 ***
fatal: [test_build_server]: FAILED! => changed=false
msg: 'Failed to assign sshkey to user: 400: {''fingerprint_sha256'': [''has already been taken'']}'
Info @wt-io-it