Sync charm-helpers

Change-Id: I85dbb3d36a113bbe2baf3edd33775d1c7cbfe72c
This commit is contained in:
Ryan Beisner 2017-11-22 18:24:44 +00:00
parent d6c5ecdd34
commit f6e6d2becd
1 changed files with 1 additions and 1 deletions

View File

@ -90,6 +90,6 @@ def install_ca_cert(ca_cert):
log("CA cert is the same as installed version", level=INFO)
else:
log("Installing new CA cert", level=INFO)
with open(cert_file, 'w') as crt:
with open(cert_file, 'wb') as crt:
crt.write(ca_cert)
subprocess.check_call(['update-ca-certificates', '--fresh'])