summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/automount.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-31 09:02:01 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-13 12:36:34 +0100
commitcf4b52111d384e8baa250aefe57f21ebda4dad7e (patch)
tree4069d1af85b0a8dd91f57e13bb95aad841d8521c /ipalib/plugins/automount.py
parent664248d5b846321f61e0776b646cca82c5a17884 (diff)
downloadfreeipa-cf4b52111d384e8baa250aefe57f21ebda4dad7e.tar.gz
freeipa-cf4b52111d384e8baa250aefe57f21ebda4dad7e.tar.xz
freeipa-cf4b52111d384e8baa250aefe57f21ebda4dad7e.zip
Remove unneeded python-ldap imports
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipalib/plugins/automount.py')
-rw-r--r--ipalib/plugins/automount.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py
index 22017fb57..a7596b475 100644
--- a/ipalib/plugins/automount.py
+++ b/ipalib/plugins/automount.py
@@ -18,13 +18,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import os
+
from ipalib import api, errors
from ipalib import Object, Command
from ipalib import Flag, Str, IA5Str
from ipalib.plugins.baseldap import *
from ipalib import _, ngettext
-import ldap as _ldap
-import os
__doc__ = _("""
Automount
@@ -726,8 +726,8 @@ class automountkey(LDAPObject):
('cn', parent_keys[0]), self.container_dn,
api.env.basedn)
attrs_list = ['*']
- (entries, truncated) = ldap.find_entries(sfilter, attrs_list,
- basedn, _ldap.SCOPE_ONELEVEL)
+ entries, truncated = ldap.find_entries(
+ sfilter, attrs_list, basedn, ldap.SCOPE_ONELEVEL)
if len(entries) > 1:
raise errors.NotFound(reason=_('More than one entry with key %(key)s found, use --info to select specific entry.') % dict(key=pkey))
if truncated: