typo in relation set in cluster
This commit is contained in:
parent
a3e6326077
commit
0083027343
|
@ -179,7 +179,7 @@ def cluster_changed():
|
|||
if '.passwd' in attribute:
|
||||
echo_data[attribute] = value
|
||||
if len(echo_data) > 0:
|
||||
hookenv.relation_set(relation_data=echo_data)
|
||||
hookenv.relation_set(relation_settings=echo_data)
|
||||
for key, value in echo_data.items():
|
||||
write_file(rabbit.LIB_PATH+key, value, rabbit.RABBIT_USER, rabbit.RABBIT_USER, 0660)
|
||||
|
||||
|
|
|
@ -198,8 +198,6 @@ def relation_set(relation_id=None, relation_settings={}, **kwargs):
|
|||
relation_cmd_line.append('{}='.format(k))
|
||||
else:
|
||||
relation_cmd_line.append('{}={}'.format(k, v))
|
||||
log('in relation set')
|
||||
log(relation_cmd_line)
|
||||
subprocess.check_call(relation_cmd_line)
|
||||
# Flush cache of any relation-gets for local unit
|
||||
flush(local_unit())
|
||||
|
|
Loading…
Reference in New Issue