1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00
hetzner.hcloud/tests/unit
Amirhossein Shaerpour 4fc2003f30
feat: allow recreating ssh key when public key in the API does not match (#634)
##### SUMMARY

- Log a warning when the provided public key does not match one in the
API.
- When the public key does not match the one in the API, allow
recreating the SSH Key in the API using the ``force=true`` argument.


Closes: #578 

##### ISSUE TYPE
- Feature Pull Request

##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below
-->
`ssh_key`

##### ADDITIONAL INFORMATION
In Hetzner API, we do not have any public_key change endpoint and only
updating names and labels are allowed.
For public_key The only way is removing and re-creating. `force` option
allows users to do re-creation if needed.

---------

Co-authored-by: jo <ljonas@riseup.net>
2025-06-03 17:43:54 +02:00
..
filter fix: check label_selector child targets with load_balancer_status filter (#552) 2024-08-16 11:09:20 +02:00
inventory fix(inventory): ensure host ipv6 variable is json serializable (#496) 2024-04-16 11:48:03 +02:00
module_utils feat: allow recreating ssh key when public key in the API does not match (#634) 2025-06-03 17:43:54 +02:00
conftest.py chore: add fail_on_invalid_params helper (#470) 2024-03-11 18:03:26 +01:00
requirements.txt ci: add unit tests to azure pipelines (#325) 2023-09-26 09:41:19 +02:00