summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/dns2.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-06-16 13:35:40 +0200
committerRob Crittenden <rcritten@redhat.com>2009-07-02 13:33:01 -0400
commitebdebe802dd74c9df82f87774bb3f5d9f6cbdee6 (patch)
tree333b536307819ec8520272a2500a82f6f09df77e /ipalib/plugins/dns2.py
parent3ce00484f410e8968d68b1d5823d753c4cdf6365 (diff)
downloadfreeipa-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.tar.gz
freeipa-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.tar.xz
freeipa-ebdebe802dd74c9df82f87774bb3f5d9f6cbdee6.zip
Remove all references to use_ldap2.
Diffstat (limited to 'ipalib/plugins/dns2.py')
-rw-r--r--ipalib/plugins/dns2.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/ipalib/plugins/dns2.py b/ipalib/plugins/dns2.py
index 17de2d7b2..7862e25ed 100644
--- a/ipalib/plugins/dns2.py
+++ b/ipalib/plugins/dns2.py
@@ -171,7 +171,6 @@ class dns2_create(crud.Create):
"""
def execute(self, *args, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.Backend.ldap2
idnsname = args[0]
@@ -217,7 +216,6 @@ class dns2_delete(crud.Delete):
"""
def execute(self, *args, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
idnsname = args[0]
@@ -255,7 +253,6 @@ class dns2_mod(crud.Update):
"""
def execute(self, *args, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
idnsname = args[0]
@@ -297,7 +294,6 @@ class dns2_find(crud.Search):
)
def execute(self, term, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
# build search filter
@@ -351,7 +347,6 @@ class dns2_show(crud.Retrieve):
)
def execute(self, idnsname, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
# build entry DN
@@ -389,7 +384,6 @@ class dns2_enable(Command):
)
def execute(self, zone):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
# build entry DN
@@ -425,7 +419,6 @@ class dns2_disable(Command):
)
def execute(self, zone):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
# build entry DN
@@ -490,7 +483,6 @@ class dns2_add_rr(Command):
)
def execute(self, zone, idnsname, type, data, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
attr = '%srecord' % type
@@ -585,7 +577,6 @@ class dns2_del_rr(Command):
)
def execute(self, zone, idnsname, type, data):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
attr = '%srecord' % type
@@ -677,7 +668,6 @@ class dns2_find_rr(Command):
)
def execute(self, zone, term, **options):
- assert self.api.env.use_ldap2, 'use_ldap2 is False'
ldap = self.api.Backend.ldap2
if 'type' in options:
attr = '%srecord' % options['type']