From e54f35182870ff743d72d4dbe9dd3ca9ba827439 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Tue, 2 Mar 2021 15:08:51 +0100 Subject: Fix dmaap-datarouter test to run with py36 Issue-ID: INT-1288 Signed-off-by: Alexander Mazuruk Change-Id: I54d2a9e4b2daebf9611ddddd0188e769ece4d936 --- scripts/dmaap-datarouter/remove_cert_from_ca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dmaap-datarouter/remove_cert_from_ca.py b/scripts/dmaap-datarouter/remove_cert_from_ca.py index 192e274f..4ed9b777 100644 --- a/scripts/dmaap-datarouter/remove_cert_from_ca.py +++ b/scripts/dmaap-datarouter/remove_cert_from_ca.py @@ -28,7 +28,7 @@ dr_cert_exists = False with open(cafile, 'r+b', buffering=0) as outfile: for line in outfile.readlines()[-35:-34]: - if "# Serial: 0x9EAEEDC0A7CEB59D" in line: + if '# Serial: 0x9EAEEDC0A7CEB59D'.encode() in line: dr_cert_exists = True if dr_cert_exists: outfile.seek(0, os.SEEK_END) -- cgit 1.2.3-korg