summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/realmdomains.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 /ipaserver/plugins/realmdomains.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 'ipaserver/plugins/realmdomains.py')
-rw-r--r--ipaserver/plugins/realmdomains.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipaserver/plugins/realmdomains.py b/ipaserver/plugins/realmdomains.py
index 26cd5bda0..13631e47c 100644
--- a/ipaserver/plugins/realmdomains.py
+++ b/ipaserver/plugins/realmdomains.py
@@ -27,7 +27,6 @@ from .baseldap import LDAPObject, LDAPUpdate, LDAPRetrieve
from ipalib.util import has_soa_or_ns_record, validate_domain_name
from ipalib.util import detect_dns_zone_realm_type
from ipapython.dn import DN
-from ipapython.ipautil import get_domain_name
if six.PY3:
unicode = str
@@ -209,7 +208,7 @@ class realmdomains_mod(LDAPUpdate):
del_domain = entry_attrs.get('del_domain')
force = options.get('force')
- current_domain = get_domain_name()
+ current_domain = self.api.env.domain
# User specified the list of domains explicitly
if associateddomain: