Skip to content
Snippets Groups Projects
Commit 0204bc8a authored by Claudio Pisa's avatar Claudio Pisa
Browse files

add hook for relation joined

parent 98de3987
No related branches found
No related tags found
No related merge requests found
from charms.reactive import when, when_not, set_flag
from charms.reactive import when, when_not, set_flag, hook
from charmhelpers.core.hookenv import status_set
import charms.apt
......@@ -29,3 +29,8 @@ def install_wordpress():
def waiting_for_moodle():
status_set('maintenance', "waiting for apt wordpress installation")
@hook('database-relation-joined')
def database_is_ready():
status_set('blocked', 'Database is ready (joined) but not configured')
set_flag('wordpress.database_is_ready')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment