1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

fix: only wait in !check_mode

This commit is contained in:
jo 2025-12-08 15:25:10 +01:00
parent 1de73e1fe5
commit 6bfcb2fb37
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984

View file

@ -513,7 +513,8 @@ class AnsibleStorageBox(AnsibleHCloud):
if not self.module.check_mode:
action = self.storage_box.reset_password(self.module.params.get("password"))
self.actions.append(action)
self._wait_actions()
self._wait_actions()
self._mark_as_changed()
except HCloudException as exception:
@ -534,7 +535,8 @@ class AnsibleStorageBox(AnsibleHCloud):
if not self.module.check_mode:
action = self.storage_box.rollback_snapshot(StorageBoxSnapshot(self.module.params.get("snapshot")))
self.actions.append(action)
self._wait_actions()
self._wait_actions()
self._mark_as_changed()
except HCloudException as exception: