fix: use empty string to remove server from its placement group (#489)

##### SUMMARY
- Do not remove the server from its placement group when the
`placement_group` argument is not specified.
- Pass an empty string to the `placement_group` argument to remove a
server from its placement group.
This commit is contained in:
Jonas L 2024-04-04 16:53:32 +02:00 committed by GitHub
parent d88ecdbccc
commit 00a4fdd58a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- server - Do not remove the server from its placement group when the `placement_group` argument is not specified.
- server - Pass an empty string to the `placement_group` argument to remove a server from its placement group.

View file

@ -80,7 +80,7 @@
- name: test remove server from placement group
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
placement_group: null
placement_group: ""
state: present
register: result
- name: verify remove server from placement group