Skip to content
Snippets Groups Projects
Commit fb99cd97 authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

rename IPV4AddressType to IPv4AddressType

parent a996af8f
No related branches found
No related tags found
1 merge request!188upgrade to orchestrato-core v2
......@@ -273,7 +273,7 @@ def find_host_by_ip(ip_addr: IPv4AddressType | ipaddress.IPv6Address) -> objects
"""Find a host record in Infoblox by its associated IP address.
:param ip_addr: The IP address of a host that is searched for.
:type ip_addr: IPV4AddressType | ipaddress.IPv6Address
:type ip_addr: IPv4AddressType | ipaddress.IPv6Address
"""
conn, _ = _setup_connection()
if ip_addr.version == 4: # noqa: PLR2004, the 4 in IPv4 is well-known and not a "magic value."
......@@ -322,7 +322,7 @@ def delete_host_by_ip(ip_addr: IPv4AddressType | ipaddress.IPv6Address) -> None:
:class:`DeletionError` if no record can be found in Infoblox.
:param ip_addr: The IP address of the host record that should get deleted.
:type ip_addr: IPV4AddressType | ipaddress.IPv6Address
:type ip_addr: IPv4AddressType | ipaddress.IPv6Address
"""
host = find_host_by_ip(ip_addr)
if host:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment