Install base64 decoded certificate

This commit is contained in:
Ante Karamatic
2014-02-04 08:41:13 +02:00
parent d05ef3a1d1
commit e370479b0b
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
from base64 import b64decode
from charmhelpers.core.hookenv import ( from charmhelpers.core.hookenv import (
log, ERROR, WARNING, log, ERROR, WARNING,
config, config,
@@ -125,7 +127,8 @@ def db_amqp_changed():
def nm_changed(): def nm_changed():
CONFIGS.write_all() CONFIGS.write_all()
if relation_get('ca_cert'): if relation_get('ca_cert'):
install_ca_cert(relation_get('ca_cert')) ca_crt = b64decode(relation_get('ca_cert'))
install_ca_cert(ca_crt)
@hooks.hook("cluster-relation-departed") @hooks.hook("cluster-relation-departed")

View File

@@ -1 +1 @@
59 60