Debian Codegraph @

ansible_collections/hetzner/hcloud/plugins/module_utils/_ipaddress.py

raw
1 # Note that this module util is **PRIVATE** to the collection. It can have breaking changes at any time.
2 # Do not use this from other collections or standalone plugins/modules!
3
4 from __future__ import annotations
5
6 from ipaddress import ip_interface
7
8
9 def normalize_ip(value: str) -> str:
10 return str(ip_interface(value))