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

rename IPV4AddressType to IPv4AddressType

parent fcc72cd1
No related branches found
No related tags found
No related merge requests found
Pipeline #86640 failed
......@@ -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.
Please register or to comment