fix db_joined
This commit is contained in:
parent
2c0831e982
commit
9da4165bb3
@ -96,15 +96,8 @@ def install_hook():
|
|||||||
|
|
||||||
|
|
||||||
def db_joined():
|
def db_joined():
|
||||||
relation_data = {
|
relation_set(database=config["glance-db"], username=config["db-user"],
|
||||||
'database': config["glance-db"],
|
hostname=unit_get('private-address'))
|
||||||
'username': config["db-user"],
|
|
||||||
'hostname': unit_get('private-address')
|
|
||||||
}
|
|
||||||
|
|
||||||
#juju-log "$CHARM - db_joined: requesting database access to $glance_db for "\
|
|
||||||
# "$db_user@$hostname"
|
|
||||||
relation_set(**relation_data)
|
|
||||||
|
|
||||||
|
|
||||||
def db_changed(rid=None):
|
def db_changed(rid=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user