minor cleanup

This commit is contained in:
Edward Hope-Morley 2014-09-28 23:26:29 +01:00
parent 08c02d4245
commit 18715fd93b

View File

@ -199,8 +199,7 @@ def mon_relation_joined():
'mon-relation-changed')
def mon_relation():
emit_cephconf()
relation_data = {}
relation_data['private-address'] = get_host_ip()
relation_data = {'private-address': get_host_ip()}
relation_set(**relation_data)
moncount = int(config('monitor-count'))
@ -280,8 +279,7 @@ def radosgw_relation(relid=None):
else:
log('mon cluster not in quorum - deferring key provision')
relation_data = {}
relation_data['private-address'] = get_host_ip()
relation_data = {'private-address': get_host_ip()}
relation_set(**relation_data)
log('End radosgw-relation hook.')
@ -289,8 +287,7 @@ def radosgw_relation(relid=None):
@hooks.hook('client-relation-joined')
def client_relation(relid=None):
relation_data = {}
relation_data['private-address'] = get_host_ip()
relation_data = {'private-address': get_host_ip()}
relation_set(**relation_data)
if ceph.is_quorum():