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

Allow setting Floating IP RDNS entries with hcloud_rdns

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
This commit is contained in:
Lukas Kämmerling 2020-09-07 14:14:34 +02:00
parent ac2aeac15b
commit df3f947d72

View file

@ -132,9 +132,9 @@ class AnsibleHcloudReverseDNS(Hcloud):
}
if self.module.params.get("server"):
result.server = to_native(self.hcloud_resource.name),
result["server"] = to_native(self.hcloud_resource.name),
elif self.module.params.get("floating_ip"):
result.floating_ip = to_native(self.hcloud_resource.name),
result["floating_ip"] = to_native(self.hcloud_resource.name),
return result
def _get_resource(self):