hcloud_floating_ip_info: add name to return values

This commit is contained in:
Olli Helenius 2019-10-01 11:40:44 +03:00 committed by René Moser
parent 594a0fa9ae
commit 596f80586b

View file

@ -61,6 +61,11 @@ hcloud_floating_ip_info:
returned: always returned: always
type: int type: int
sample: 1937415 sample: 1937415
name:
description: Name of the Floating IP
returned: Always
type: str
sample: my-floating-ip
description: description:
description: Description of the Floating IP description: Description of the Floating IP
returned: always returned: always
@ -117,6 +122,7 @@ class AnsibleHcloudFloatingIPInfo(Hcloud):
server_name = floating_ip.server.name server_name = floating_ip.server.name
tmp.append({ tmp.append({
"id": to_native(floating_ip.id), "id": to_native(floating_ip.id),
"name": to_native(floating_ip.name),
"description": to_native(floating_ip.description), "description": to_native(floating_ip.description),
"ip": to_native(floating_ip.ip), "ip": to_native(floating_ip.ip),
"type": to_native(floating_ip.type), "type": to_native(floating_ip.type),