mirror of
https://github.com/rancher/norman.git
synced 2025-09-04 16:50:41 +00:00
Rename method
This commit is contained in:
@@ -151,13 +151,13 @@ func (b *Builder) checkDefaultAndRequired(schema *types.Schema, input map[string
|
|||||||
}
|
}
|
||||||
|
|
||||||
if op.IsList() && b.export {
|
if op.IsList() && b.export {
|
||||||
b.dropDefaults(schema, result)
|
b.dropDefaultsAndReadOnly(schema, result)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
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 {
|
for name, existingVal := range result {
|
||||||
field, ok := schema.ResourceFields[name]
|
field, ok := schema.ResourceFields[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Reference in New Issue
Block a user