b64decoded data bust be written as binary

Change-Id: I41e92106b5b53685b2b8e9b8f1f420dd2baca3ed
This commit is contained in:
Chris MacNaughton 2017-11-24 14:05:00 +01:00
parent f65fd7aaed
commit 009b27871c
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ def import_keystone_ca_cert():
if not ca_cert:
return
log('Writing Keystone CA certificate to %s' % CA_CERT_PATH)
with open(CA_CERT_PATH, 'wt') as out:
with open(CA_CERT_PATH, 'wb') as out:
out.write(b64decode(ca_cert))
check_call(['update-ca-certificates'])