From cc34c7bd5201fa31c9d9c68e6fcdea0f84af9404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 29 Jun 2020 08:24:17 +0200 Subject: [PATCH] fix tests --- plugins/modules/hcloud_load_balancer_target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/hcloud_load_balancer_target.py b/plugins/modules/hcloud_load_balancer_target.py index e8849d3..8be29eb 100644 --- a/plugins/modules/hcloud_load_balancer_target.py +++ b/plugins/modules/hcloud_load_balancer_target.py @@ -125,7 +125,7 @@ class AnsibleHcloudLoadBalancerTarget(Hcloud): return { "type": to_native(self.hcloud_load_balancer_target.type), "load_balancer": to_native(self.hcloud_load_balancer.name), - "server": None if self.hcloud_server else to_native(self.hcloud_server.name), + "server": to_native(self.hcloud_server.name) if self.hcloud_server else None, } def _get_load_balancer_and_target(self):