mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
fix(inventory): ensure host ipv6 variable is json serializable (#496)
##### SUMMARY Fix https://github.com/ansible-collections/hetzner.hcloud/issues/495 Related to https://github.com/ansible-collections/hetzner.hcloud/pull/477 ##### ISSUE TYPE - Bugfix Pull Request ##### COMPONENT NAME inventory
This commit is contained in:
parent
50a8d02e2d
commit
a98cf72f92
3 changed files with 78 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ def first_ipv6_address(network: str) -> str:
|
|||
|
||||
:param network: IPv6 Network.
|
||||
"""
|
||||
return next(IPv6Network(network).hosts())
|
||||
return str(next(IPv6Network(network).hosts()))
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue