From df3f947d725667a2aa3309ab1d7dcd643ec70829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 7 Sep 2020 14:14:34 +0200 Subject: [PATCH] Allow setting Floating IP RDNS entries with hcloud_rdns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lukas Kämmerling --- plugins/modules/hcloud_rdns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/hcloud_rdns.py b/plugins/modules/hcloud_rdns.py index 34219de..c288dc0 100644 --- a/plugins/modules/hcloud_rdns.py +++ b/plugins/modules/hcloud_rdns.py @@ -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):