Remove 'SSL key...installed' message when it isn't
Reviewed-on: https://code.launchpad.net/~gnuoy/vault-charm/+git/vault-charm/+merge/337114 Reviewed-by: Stuart Bishop <stuart.bishop@canonical.com>
This commit is contained in:
commit
d529f40620
|
@ -134,10 +134,10 @@ def configure_ssl():
|
|||
ssl_cert = ssl_cert + base64.decodestring(c['ssl-chain'].encode())
|
||||
write_file('/var/snap/vault/common/vault.crt', ssl_cert, perms=0o600)
|
||||
set_state('vault.ssl.available')
|
||||
status_set('active', 'SSL key and cert installed')
|
||||
else:
|
||||
remove_state('vault.ssl.available')
|
||||
set_state('vault.ssl.configured')
|
||||
status_set('active', 'SSL key and cert installed')
|
||||
remove_state('configured')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue