mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 20:34:41 +00:00
Fixed typo
This commit is contained in:
@@ -321,7 +321,7 @@ def is_valid_port(port):
|
|||||||
|
|
||||||
|
|
||||||
def is_ipv4_addr(ipaddr):
|
def is_ipv4_addr(ipaddr):
|
||||||
"""Test if figen IP address is a valid IPv4 address."""
|
"""Test if given IP address is a valid IPv4 address."""
|
||||||
try:
|
try:
|
||||||
socket.inet_pton(socket.AF_INET, ipaddr)
|
socket.inet_pton(socket.AF_INET, ipaddr)
|
||||||
except socket.error:
|
except socket.error:
|
||||||
@@ -330,7 +330,7 @@ def is_ipv4_addr(ipaddr):
|
|||||||
|
|
||||||
|
|
||||||
def is_ipv6_addr(ipaddr):
|
def is_ipv6_addr(ipaddr):
|
||||||
"""Test if figen IP address is a valid IPv6 address."""
|
"""Test if given IP address is a valid IPv6 address."""
|
||||||
try:
|
try:
|
||||||
socket.inet_pton(socket.AF_INET6, ipaddr)
|
socket.inet_pton(socket.AF_INET6, ipaddr)
|
||||||
except socket.error:
|
except socket.error:
|
||||||
|
|||||||
Reference in New Issue
Block a user