1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-25 14:46:57 +00:00

Merge pull request #395 from StrongMonkey/self-link-3

Use lower name
This commit is contained in:
Dan Ramich
2021-02-24 18:09:17 -07:00
committed by GitHub

View File

@@ -25,7 +25,7 @@ func (s *SelfLink) ToInternal(data map[string]interface{}) error {
}
func (s *SelfLink) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {
s.resource = name.GuessPluralName(schema.ID)
s.resource = name.GuessPluralName(strings.ToLower(schema.ID))
return nil
}