summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-11 16:28:17 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-11 16:28:17 +0100
commit378dff1365801b2dd23677a38f2fb20828cbbf39 (patch)
tree0ac6cd41bad9e362e066c14d447ab30c99a9f75c
parent7c3e8c838f0ada9ebae9dbb2bc5d84320c8431f2 (diff)
downloadsamba-378dff1365801b2dd23677a38f2fb20828cbbf39.tar.gz
samba-378dff1365801b2dd23677a38f2fb20828cbbf39.tar.bz2
samba-378dff1365801b2dd23677a38f2fb20828cbbf39.zip
python: Fix typo.
(This used to be commit d6b06fc03e37781f5f59b15cff8fe3ee8df63444)
-rw-r--r--source4/scripting/python/samba/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index e858180169..483929661d 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -121,14 +121,14 @@ class Ldb(ldb.Ldb):
# and the rest
for msg in self.search(basedn, ldb.SCOPE_SUBTREE,
"(&(|(objectclass=*)(distinguishedName=*))(!(distinguishedName=@BASEINFO)))",
- ["dn"]):
+ ["distinguishedName"]):
try:
self.delete(msg.dn)
except ldb.LdbError, (LDB_ERR_NO_SUCH_OBJECT, _):
# Ignor eno such object errors
pass
- res = self.search(basedn, ldb.SCOPE_SUBTREE, "(&(|(objectclass=*)(distinguishedName=*))(!(distinguisedName=@BASEINFO)))", ["dn"])
+ res = self.search(basedn, ldb.SCOPE_SUBTREE, "(&(|(objectclass=*)(distinguishedName=*))(!(distinguishedName=@BASEINFO)))", ["distinguishedName"])
assert len(res) == 0
def erase_partitions(self):