diff options
author | Petr Spacek <pspacek@redhat.com> | 2016-03-07 10:52:35 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2016-04-28 18:46:06 +0200 |
commit | 9ee6d379c496cd1648d58a6ecca72ed41638a3f1 (patch) | |
tree | 5e5c95c628777dd237f4adbdad4df7f537343c8e /ipapython/ipautil.py | |
parent | c34af691def03313b61a231b85213c8f20e44cfa (diff) | |
download | freeipa-9ee6d379c496cd1648d58a6ecca72ed41638a3f1.tar.gz freeipa-9ee6d379c496cd1648d58a6ecca72ed41638a3f1.tar.xz freeipa-9ee6d379c496cd1648d58a6ecca72ed41638a3f1.zip |
Remove function ipapython.ipautil.host_exists()
The function duplicated ipalib.util.verify_host_resolvable() in slightly
incompatible way because it used NSS while rest of IPA is using only DNS.
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r-- | ipapython/ipautil.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index eef4d8020..582311e99 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -1015,20 +1015,6 @@ def bind_port_responder(port, socket_type=socket.SOCK_STREAM, socket_timeout=Non raise last_socket_error # pylint: disable=E0702 -def host_exists(host): - """ - Resolve the host to see if it exists. - - Returns True/False - """ - try: - socket.getaddrinfo(host, 80) - except socket.gaierror: - return False - else: - return True - - def reverse_record_exists(ip_address): """ Checks if IP address have some reverse record somewhere. |