mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
fix: firewall idempotency with ipv6 addresses (#722)
##### SUMMARY Always use the canonical address representation when checking if rules changed. Fixes #708
This commit is contained in:
parent
7ac361a9cc
commit
907a7fd73c
4 changed files with 73 additions and 17 deletions
7
plugins/module_utils/ipaddress.py
Normal file
7
plugins/module_utils/ipaddress.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from ipaddress import ip_interface
|
||||
|
||||
|
||||
def normalize_ip(value: str) -> str:
|
||||
return str(ip_interface(value))
|
||||
Loading…
Add table
Add a link
Reference in a new issue