Sync charm-helpers
Change-Id: I85dbb3d36a113bbe2baf3edd33775d1c7cbfe72c
This commit is contained in:
parent
d6c5ecdd34
commit
f6e6d2becd
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user