From: Alexander Mazuruk Date: Tue, 2 Mar 2021 14:08:51 +0000 (+0100) Subject: Fix dmaap-datarouter test to run with py36 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=integration%2Fcsit.git;a=commitdiff_plain;h=e54f35182870ff743d72d4dbe9dd3ca9ba827439 Fix dmaap-datarouter test to run with py36 Issue-ID: INT-1288 Signed-off-by: Alexander Mazuruk Change-Id: I54d2a9e4b2daebf9611ddddd0188e769ece4d936 --- 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)