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