py3: fix manager.py _get_public_bytes() to handle bytes
Fix manager.py _get_public_bytes() to use variable of type bytes instead of str, avoiding issues when concatanating str and bytes in py3. Story: 2008454 Task: 43042 Change-Id: Id18e5ff32104b57f2602569c4489d3ffce0c33b7 Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com>
This commit is contained in:
parent
e617a005c4
commit
c734b75958
@ -11559,9 +11559,9 @@ class ConductorManager(service.PeriodicService):
|
||||
|
||||
# Concatenate all the public bytes together, as the pem contents
|
||||
# may contain intermediate CA certs in it.
|
||||
public_bytes = ''
|
||||
public_bytes = b''
|
||||
for cert in cert_list:
|
||||
public_bytes += cert.get('public_bytes', '')
|
||||
public_bytes += cert.get('public_bytes', b'')
|
||||
|
||||
return public_bytes
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user