Fix dmaap-datarouter test to run with py36 53/118753/1
authorAlexander Mazuruk <a.mazuruk@samsung.com>
Tue, 2 Mar 2021 14:08:51 +0000 (15:08 +0100)
committerAlexander Mazuruk <a.mazuruk@samsung.com>
Wed, 3 Mar 2021 13:12:42 +0000 (14:12 +0100)
Issue-ID: INT-1288
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
Change-Id: I54d2a9e4b2daebf9611ddddd0188e769ece4d936

scripts/dmaap-datarouter/remove_cert_from_ca.py

index 192e274..4ed9b77 100644 (file)
@@ -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)