X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fdmaap-datarouter%2Fremove_cert_from_ca.py;fp=scripts%2Fdmaap-datarouter%2Fremove_cert_from_ca.py;h=4ed9b777d849727f9327806de9fa29d920fc0ca9;hb=e54f35182870ff743d72d4dbe9dd3ca9ba827439;hp=192e274f36e894a270659555a41c32f2642b253c;hpb=f767caa1d32370f28917f243227f2292105c071e;p=integration%2Fcsit.git 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)