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:
parent
1de73e1fe5
commit
6bfcb2fb37
1 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue