1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-03 08:14:40 +00:00

Rename method

This commit is contained in:
Darren Shepherd
2018-06-19 11:21:15 -07:00
parent 88e3507f72
commit 51ea2cd7f6

View File

@@ -151,13 +151,13 @@ func (b *Builder) checkDefaultAndRequired(schema *types.Schema, input map[string
}
if op.IsList() && b.export {
b.dropDefaults(schema, result)
b.dropDefaultsAndReadOnly(schema, result)
}
return nil
}
func (b *Builder) dropDefaults(schema *types.Schema, result map[string]interface{}) {
func (b *Builder) dropDefaultsAndReadOnly(schema *types.Schema, result map[string]interface{}) {
for name, existingVal := range result {
field, ok := schema.ResourceFields[name]
if !ok {