Skip to content
Snippets Groups Projects

upgrade to orchestrato-core v2

Merged Mohammad Torkashvand requested to merge upgrade-to-v2 into develop
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -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:
Loading