mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
hcloud: Fix testsuite (#55076)
This commit is contained in:
committed by
René Moser
parent
a971a0eb80
commit
3f579eb68f
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user