Fix py3 issue with writing a file from base64 output

Change-Id: Ifcfbce588f077f2664400b9f3e27c7b42176ca24
This commit is contained in:
Alex Kavanagh 2019-03-27 15:33:41 +00:00
parent 7ea0be57de
commit 994179cd40
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class CeilometerServiceContext(OSContextGenerator):
if conf.get('rabbit_ssl_ca') is not None:
ca_path = os.path.join(
self.ssl_dir, 'rabbit-client-ca.pem')
with open(ca_path, 'wt') as fh:
with open(ca_path, 'wb') as fh:
fh.write(base64.b64decode(conf['rabbit_ssl_ca']))
conf['rabbit_ssl_ca'] = ca_path
return conf