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

Add hcloud_load_balancer_target.py

This commit is contained in:
Lukas Kämmerling 2020-06-29 07:47:49 +02:00
parent a6092ba287
commit 8019326bc5

View file

@ -148,7 +148,10 @@ class AnsibleHcloudLoadBalancerTarget(Hcloud):
"target": None
}
if params["type"] == "server":
if self.module.params.get("type") == "server":
self.module.fail_on_missing_params(
required_params=["server"]
)
params["target"] = LoadBalancerTarget(type=self.module.params.get("type"), server=self.hcloud_server,
use_private_ip=self.module.params.get("use_private_ip"))
if not self.module.check_mode: