mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s4/torture/drs/python: long is not used in py3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
409ad5c0f0
commit
08c9ce41e9
@ -184,7 +184,7 @@ class DrsBaseTestCase(SambaToolCmdTest):
|
|||||||
def _get_highest_hwm_utdv(self, ldb_conn):
|
def _get_highest_hwm_utdv(self, ldb_conn):
|
||||||
res = ldb_conn.search("", scope=ldb.SCOPE_BASE, attrs=["highestCommittedUSN"])
|
res = ldb_conn.search("", scope=ldb.SCOPE_BASE, attrs=["highestCommittedUSN"])
|
||||||
hwm = drsuapi.DsReplicaHighWaterMark()
|
hwm = drsuapi.DsReplicaHighWaterMark()
|
||||||
hwm.tmp_highest_usn = long(res[0]["highestCommittedUSN"][0])
|
hwm.tmp_highest_usn = int(res[0]["highestCommittedUSN"][0])
|
||||||
hwm.reserved_usn = 0
|
hwm.reserved_usn = 0
|
||||||
hwm.highest_usn = hwm.tmp_highest_usn
|
hwm.highest_usn = hwm.tmp_highest_usn
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user