331
332
// of the lifetime of the unit.
332
333
func (ru *RelationUnit) ReadSettings(uname string) (m map[string]interface{}, err error) {
333
334
defer utils.ErrorContextf(&err, "cannot read settings for unit %q in relation %q", uname, ru.relation)
335
336
return nil, fmt.Errorf("%q is not a valid unit name", uname)
337
338
key, err := ru.key(uname)