Remove 'SSL key...installed' message when it isn't

Remove the 'SSL key and cert installed' workload status message if
SSL key and cert are not installed
This commit is contained in:
Liam Young 2018-02-03 11:35:02 +00:00
parent dbdf72016c
commit 776e9f506a
1 changed files with 1 additions and 1 deletions

View File

@ -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')