mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
hcloud: Fix testsuite (#55076)
This commit is contained in:
parent
a971a0eb80
commit
3f579eb68f
21 changed files with 47 additions and 75 deletions
|
@ -301,7 +301,7 @@ class AnsibleHcloudServer(Hcloud):
|
|||
timeout = 100
|
||||
if self.module.params.get("upgrade_disk"):
|
||||
timeout = (
|
||||
500
|
||||
1000
|
||||
) # When we upgrade the disk too the resize progress takes some more time.
|
||||
if not self.module.check_mode:
|
||||
self.hcloud_server.change_type(
|
||||
|
|
|
@ -134,7 +134,7 @@ class AnsibleHcloudVolumeFacts(Hcloud):
|
|||
self.module.params.get("name")
|
||||
)]
|
||||
elif self.module.params.get("label_selector") is not None:
|
||||
self.hcloud_volume_facts = self.client.servers.get_all(
|
||||
self.hcloud_volume_facts = self.client.volumes.get_all(
|
||||
label_selector=self.module.params.get("label_selector"))
|
||||
else:
|
||||
self.hcloud_volume_facts = self.client.volumes.get_all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue