mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
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:
parent
d88ecdbccc
commit
00a4fdd58a
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/server-empty-string-arguments.yml
Normal file
3
changelogs/fragments/server-empty-string-arguments.yml
Normal 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.
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue