1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

drs_utils: Make loop exit condition explicit

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>
This commit is contained in:
Jennifer Sutton
2024-08-06 15:38:57 +12:00
committed by Jo Sutton
parent b0828fc3b0
commit 25c4ee2337

View File

@@ -231,10 +231,7 @@ class drs_Replicate(object):
object_to_check = ctr.first_object
while True:
if object_to_check is None:
break
while object_to_check is not None:
self.guids_seen.add(str(object_to_check.object.identifier.guid))
if object_to_check.parent_object_guid is not None \