Code Review
/
integration
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fix CSIT for PMSH"
[integration/csit.git]
/
scripts
/
dmaap-datarouter
/
remove_cert_from_ca.py
diff --git
a/scripts/dmaap-datarouter/remove_cert_from_ca.py
b/scripts/dmaap-datarouter/remove_cert_from_ca.py
index
192e274
..
4ed9b77
100644
(file)
--- 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]:
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)
dr_cert_exists = True
if dr_cert_exists:
outfile.seek(0, os.SEEK_END)