From 9da4165bb3ac01a9e29d1698a8f790112287cca2 Mon Sep 17 00:00:00 2001 From: Andres Rodriguez Date: Thu, 20 Jun 2013 14:21:42 -0400 Subject: [PATCH] fix db_joined --- hooks/glance_relations.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/hooks/glance_relations.py b/hooks/glance_relations.py index ff689c1e..9e15bc44 100755 --- a/hooks/glance_relations.py +++ b/hooks/glance_relations.py @@ -96,15 +96,8 @@ def install_hook(): def db_joined(): - relation_data = { - 'database': config["glance-db"], - '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) + relation_set(database=config["glance-db"], username=config["db-user"], + hostname=unit_get('private-address')) def db_changed(rid=None):