Issue-ID: INT-1288
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
Change-Id: I54d2a9e4b2daebf9611ddddd0188e769ece4d936
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)