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:
parent
a6092ba287
commit
8019326bc5
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue