1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-02 07:59:20 +00:00

Fix embed mapper ignore list not working

This commit is contained in:
orangedeng 2019-01-09 15:22:22 +08:00
parent 0557aa4ff3
commit d71b4215d0

View File

@ -70,10 +70,11 @@ func (e *Embed) ModifySchema(schema *types.Schema, schemas *types.Schemas) error
}
deleteField := true
outer:
for name, field := range embeddedSchema.ResourceFields {
for _, ignore := range e.Ignore {
if ignore == name {
continue
continue outer
}
}