|
|
|
|
@ -272,12 +272,13 @@ class AnsibleHcloudServer(Hcloud):
|
|
|
|
|
self.hcloud_server = None
|
|
|
|
|
|
|
|
|
|
def _prepare_result(self):
|
|
|
|
|
image = None if self.hcloud_server.image is None else to_native(self.hcloud_server.image.name)
|
|
|
|
|
return {
|
|
|
|
|
"id": to_native(self.hcloud_server.id),
|
|
|
|
|
"name": to_native(self.hcloud_server.name),
|
|
|
|
|
"ipv4_address": to_native(self.hcloud_server.public_net.ipv4.ip),
|
|
|
|
|
"ipv6": to_native(self.hcloud_server.public_net.ipv6.ip),
|
|
|
|
|
"image": to_native(self.hcloud_server.image.name),
|
|
|
|
|
"image": image,
|
|
|
|
|
"server_type": to_native(self.hcloud_server.server_type.name),
|
|
|
|
|
"datacenter": to_native(self.hcloud_server.datacenter.name),
|
|
|
|
|
"location": to_native(self.hcloud_server.datacenter.location.name),
|
|
|
|
|
|