321
321
// guaranteed to persist for the lifetime of the relation, regardless
322
322
// of the lifetime of the unit.
323
323
func (ru *RelationUnit) ReadSettings(uname string) (m map[string]interface{}, err error) {
324
defer trivial.ErrorContextf(&err, "cannot read settings for unit %q in relation %q", uname, ru.relation)
324
defer utils.ErrorContextf(&err, "cannot read settings for unit %q in relation %q", uname, ru.relation)
326
326
return nil, fmt.Errorf("%q is not a valid unit name", uname)