minor cleanup
This commit is contained in:
parent
08c02d4245
commit
18715fd93b
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user