more debug

This commit is contained in:
yolanda.robla@canonical.com 2014-02-28 16:11:42 +01:00
parent e5f51e907b
commit 691b78e79b
1 changed files with 2 additions and 1 deletions

View File

@ -46,9 +46,10 @@ def configure_amqp(username, vhost):
# get and update service password
password = None
cluster_rels = hookenv.relation_ids('cluster')
utils.juju_log('INFO', 'in configure amqp: %s' % str(cluster_rels))
utils.juju_log('INFO', 'in configure amqp: %s , length %s' % (str(cluster_rels), str(len(cluster_rels))))
if len(cluster_rels)>0:
cluster_rid = cluster_rels[0]
utils.juju_log('INFO', 'cluster rid is: %s' % str(cluster_rid))
password = hookenv.relation_get(attribute='%s.passwd' % username,
rid=cluster_rid,
unit=hookenv.local_unit())