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:
committed by
Jo Sutton
parent
b0828fc3b0
commit
25c4ee2337
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user