diff options
| author | Jennifer Sutton <jennifersutton@catalyst.net.nz> | 2024-09-03 11:38:44 +1200 |
|---|---|---|
| committer | Jo Sutton <jsutton@samba.org> | 2025-05-26 02:41:36 +0000 |
| commit | 44548de57a3f2932bb6546945cdb6f2212d3c4c2 (patch) | |
| tree | 299ece6e0b74e83816dd8f326fd98fb1011626e4 /python | |
| parent | 8fc5c78ff64ec1357b6d288e6069b0c9c78915df (diff) | |
| download | samba-44548de57a3f2932bb6546945cdb6f2212d3c4c2.tar.gz samba-44548de57a3f2932bb6546945cdb6f2212d3c4c2.tar.bz2 samba-44548de57a3f2932bb6546945cdb6f2212d3c4c2.zip | |
python: Make set of seen GUIDs a local variable
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852
Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/drs_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/samba/drs_utils.py b/python/samba/drs_utils.py index 3907743b62e..4b7fdacd846 100644 --- a/python/samba/drs_utils.py +++ b/python/samba/drs_utils.py @@ -224,7 +224,7 @@ class drs_Replicate(object): def _calculate_missing_anc_locally(self, ctr): - self.guids_seen = set() + guids_seen = set() # walk objects in ctr, add to guids_seen as we see them # note if an object doesn't have a parent @@ -232,12 +232,12 @@ class drs_Replicate(object): object_to_check = ctr.first_object while object_to_check is not None: - self.guids_seen.add(str(object_to_check.object.identifier.guid)) + guids_seen.add(str(object_to_check.object.identifier.guid)) if object_to_check.parent_object_guid is not None \ and object_to_check.parent_object_guid \ != misc.GUID("00000000-0000-0000-0000-000000000000") \ - and str(object_to_check.parent_object_guid) not in self.guids_seen: + and str(object_to_check.parent_object_guid) not in guids_seen: obj_dn = ldb.Dn(self.samdb, object_to_check.object.identifier.dn) parent_dn = obj_dn.parent() print(f"Object {parent_dn} with " |
