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

fix tests

This commit is contained in:
Lukas Kämmerling 2020-06-29 08:24:17 +02:00
parent 0256ca72c2
commit cc34c7bd52

View file

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