]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture/drs/python: py2/py3 porting needed for samba4.drs.getncchanges
authorNoel Power <noel.power@suse.com>
Fri, 15 Jun 2018 15:46:12 +0000 (16:46 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 15 Sep 2018 13:18:30 +0000 (15:18 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/drs/python/getncchanges.py

index 097866d81fc2f589ee22d455df570f1aa89b72dc..23925cf14bc50c9ad478c99a2ddadf4a1e6cf0ac 100644 (file)
@@ -475,7 +475,7 @@ class DrsReplicaSyncIntegrityTestCase(drs_base.DrsBaseTestCase):
 
         # find the received link in the list and assert that the target and
         # source GUIDs match what's in the DB
-        for val in res[0][link_attr]:
+        for val in [str(val) for val in res[0][link_attr]]:
             # Work out the expected source and target GUIDs for the DB link
             target_dn = ldb.Dn(self.test_ldb_dc, val)
             targetGUID_blob = target_dn.get_extended_component("GUID")