Commit 521dbff7 authored by rithu leena john's avatar rithu leena john Committed by GitHub

Merge pull request #912 from zhuguihua/fix_typo

Fix two typos
parents 5859fe10 4e99ec3e
......@@ -153,7 +153,7 @@ func (s *Storage) UnmarshalJSON(b []byte) error {
if len(store.Config) != 0 {
data := []byte(os.ExpandEnv(string(store.Config)))
if err := json.Unmarshal(data, storageConfig); err != nil {
return fmt.Errorf("parse storace config: %v", err)
return fmt.Errorf("parse storage config: %v", err)
}
}
*s = Storage{
......
......@@ -213,7 +213,7 @@ func (c *Config) openConnector(logger logrus.FieldLogger) (*ldapConnector, error
}
groupSearchScope, ok := parseScope(c.GroupSearch.Scope)
if !ok {
return nil, fmt.Errorf("userSearch.Scope unknown value %q", c.GroupSearch.Scope)
return nil, fmt.Errorf("groupSearch.Scope unknown value %q", c.GroupSearch.Scope)
}
return &ldapConnector{*c, userSearchScope, groupSearchScope, tlsConfig, logger}, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment