summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-05-05 21:40:34 +1200
committerAndreas Schneider <asn@cryptomilk.org>2022-05-10 05:19:34 +0000
commit6586ac03a5518f1d86786506de87c4e90abe29c3 (patch)
treeb8dfd83ed6ed6494a0b59c9d8cf5d2ff77388577 /python
parent455c083ec375a58a648021543ac51faca02bc0b6 (diff)
downloadsamba-6586ac03a5518f1d86786506de87c4e90abe29c3.tar.gz
samba-6586ac03a5518f1d86786506de87c4e90abe29c3.tar.bz2
samba-6586ac03a5518f1d86786506de87c4e90abe29c3.zip
kcc: Don't reuse outer loop variable for inner loop
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/kcc/ldif_import_export.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/samba/kcc/ldif_import_export.py b/python/samba/kcc/ldif_import_export.py
index 7ec553edcb9..578330dda0e 100644
--- a/python/samba/kcc/ldif_import_export.py
+++ b/python/samba/kcc/ldif_import_export.py
@@ -226,10 +226,10 @@ def samdb_to_ldif_file(samdb, dburl, lp, creds, ldif_file):
# Spin thru all the DSAs looking for NC replicas
# and build a list of all possible Naming Contexts
# for subsequent retrieval below
- for msg in res:
- for k in msg.keys():
+ for res_msg in res:
+ for k in res_msg.keys():
if k in ncattrs:
- for value in msg[k]:
+ for value in res_msg[k]:
# Some of these have binary DNs so
# use dsdb_Dn to split out relevent parts
dsdn = dsdb_Dn(samdb, value.decode('utf8'))