typo in relation set in cluster

This commit is contained in:
yolanda.robla@canonical.com 2014-02-28 17:47:24 +01:00
parent a3e6326077
commit 0083027343
2 changed files with 1 additions and 3 deletions

View File

@ -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)

View File

@ -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())