Skip to content

Commit

Permalink
fix: use empty string to remove server from its placement group (ansi…
Browse files Browse the repository at this point in the history
…ble-collections#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.
  • Loading branch information
jooola authored Apr 4, 2024
1 parent d88ecdb commit 00a4fdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/server-empty-string-arguments.yml
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion tests/integration/targets/placement_group/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00a4fdd

Please sign in to comment.