1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

tests/rodc_rwdc: p.communicate() gives bytes, not str

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall
2019-02-16 10:48:00 +13:00
committed by Andrew Bartlett
parent 4ddfe8fc75
commit edfd33ab3e

View File

@ -88,7 +88,7 @@ def set_auto_replication(dc, allow):
stdout=subprocess.PIPE)
stdout, stderr = p.communicate()
if p.returncode:
if 'LDAP_REFERRAL' not in stderr:
if b'LDAP_REFERRAL' not in stderr:
raise RodcRwdcTestException()
print("ignoring +%s REFERRAL error; assuming %s is RODC" %
(opt, dc))