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

Add update

This commit is contained in:
Lukas Kämmerling 2020-06-29 12:01:31 +02:00
parent e1835a9468
commit 65dd140c44

View file

@ -296,11 +296,8 @@ class AnsibleHcloudLoadBalancerService(Hcloud):
health_check=self.module.params.get("health_check"))
if not self.module.check_mode:
try:
self.hcloud_load_balancer.update_service(LoadBalancerService(**params)).wait_until_finished(
max_retries=1000)
except APIException as e:
self.module.fail_json(msg=e.message)
self.hcloud_load_balancer.update_service(LoadBalancerService(**params)).wait_until_finished(
max_retries=1000)
except APIException as e:
self.module.fail_json(msg=e.message)