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):