mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
Implement basic HTTP arguments
This commit is contained in:
parent
ecd5e6f84e
commit
1c8da5d21a
1 changed files with 6 additions and 4 deletions
|
|
@ -201,9 +201,12 @@ class AnsibleHcloudLoadBalancerService(Hcloud):
|
|||
params["http"] = self.__get_service_http()
|
||||
|
||||
if not self.module.check_mode:
|
||||
action = self.hcloud_load_balancer.add_service(LoadBalancerService(**params))
|
||||
action.wait_until_finished(max_retries=1000)
|
||||
|
||||
try:
|
||||
print(params)
|
||||
action = self.hcloud_load_balancer.add_service(LoadBalancerService(**params))
|
||||
action.wait_until_finished(max_retries=1000)
|
||||
except APIException as e:
|
||||
self.module.fail_json(msg=e.message)
|
||||
self._mark_as_changed()
|
||||
self._get_load_balancer()
|
||||
self._get_load_balancer_service()
|
||||
|
|
@ -238,7 +241,6 @@ class AnsibleHcloudLoadBalancerService(Hcloud):
|
|||
self.module.fail_json(msg=e.message)
|
||||
service_http.certificates.append(hcloud_cert)
|
||||
|
||||
self.module.fail_json(msg="test", debug=service_http)
|
||||
return service_http
|
||||
|
||||
def _update_load_balancer_service(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue