mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
fix(server): server still locked after placement_group attach (#192)
In some cases the server was still marked as locked after attaching it to a placement_group. This caused potential follow up tasks that use the server to fail. This happened because the action returned by `add_to_placement_group()` was not waited upon. For the detach case this is handled correctly.
This commit is contained in:
parent
5c976b383a
commit
60d9cf74a6
2 changed files with 3 additions and 1 deletions
|
|
@ -652,7 +652,7 @@ class AnsibleHcloudServer(Hcloud):
|
|||
):
|
||||
self.stop_server_if_forced()
|
||||
if not self.module.check_mode:
|
||||
self.hcloud_server.add_to_placement_group(placement_group)
|
||||
self.hcloud_server.add_to_placement_group(placement_group).wait_until_finished()
|
||||
self._mark_as_changed()
|
||||
|
||||
if "ipv4" in self.module.params:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue