hcloud: Fix testsuite (#55076)

This commit is contained in:
Lukas Kämmerling 2019-04-10 15:16:10 +02:00 committed by René Moser
commit 3f579eb68f
21 changed files with 47 additions and 75 deletions

View file

@ -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(

View file

@ -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()