summaryrefslogtreecommitdiffstats
path: root/ipapython/ipautil.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-11-22 15:24:31 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-29 14:50:51 +0100
commit7b966e8577fdb56f069cf26a6ab4d6c77b8743b9 (patch)
tree8154776f6cfeae37e576e21e5dcdc52958d1a771 /ipapython/ipautil.py
parentd6b755e3fcaf32158f4ee36d45e3344b4a03fbc2 (diff)
downloadfreeipa-7b966e8577fdb56f069cf26a6ab4d6c77b8743b9.tar.gz
freeipa-7b966e8577fdb56f069cf26a6ab4d6c77b8743b9.tar.xz
freeipa-7b966e8577fdb56f069cf26a6ab4d6c77b8743b9.zip
ipautil: remove get_domain_name()
get_domain_name() and related code depends on ipaplatform. Replace all uses of get_domain_name() with api.env.domain and remove get_domain_name() and all of the related code. https://fedorahosted.org/freeipa/ticket/6474 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r--ipapython/ipautil.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index e613fd4d4..762cd914d 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -50,7 +50,6 @@ from six.moves import input
from six.moves import urllib
from ipapython.ipa_log_manager import root_logger
-from ipapython import config
from ipaplatform.paths import paths
from ipapython.dn import DN
@@ -63,16 +62,6 @@ KRB5KDC_ERR_SVC_UNAVAILABLE = 2529638941 # A service is not available that is
# required to process the request
-def get_domain_name():
- try:
- config.init_config()
- domain_name = config.config.get_domain()
- except Exception:
- return None
-
- return domain_name
-
-
class UnsafeIPAddress(netaddr.IPAddress):
"""Any valid IP address with or without netmask."""