mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
##### SUMMARY Always use the canonical address representation when checking if rules changed. Fixes #708
7 lines
146 B
Python
7 lines
146 B
Python
from __future__ import annotations
|
|
|
|
from ipaddress import ip_interface
|
|
|
|
|
|
def normalize_ip(value: str) -> str:
|
|
return str(ip_interface(value))
|