Fix py3 issue with writing a file from base64 output
Change-Id: Ifcfbce588f077f2664400b9f3e27c7b42176ca24
This commit is contained in:
parent
7ea0be57de
commit
994179cd40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue