aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Mazuruk <a.mazuruk@samsung.com>2021-03-02 15:08:51 +0100
committerAlexander Mazuruk <a.mazuruk@samsung.com>2021-03-03 14:12:42 +0100
commite54f35182870ff743d72d4dbe9dd3ca9ba827439 (patch)
tree6d4fa3749d6961ab8050fc62f25903f82da50c76
parentf767caa1d32370f28917f243227f2292105c071e (diff)
Fix dmaap-datarouter test to run with py36
Issue-ID: INT-1288 Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com> Change-Id: I54d2a9e4b2daebf9611ddddd0188e769ece4d936
-rw-r--r--scripts/dmaap-datarouter/remove_cert_from_ca.py2
1 files changed, 1 insertions, 1 deletions
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)