config: Fixing review comments
This commit is contained in:
parent
0ea3969427
commit
57012670b7
@ -177,14 +177,13 @@ def _validate(raw_config, schemas):
|
||||
errors = {}
|
||||
sections = set(raw_config)
|
||||
for schema in schemas:
|
||||
sections.discard(schema.name)
|
||||
values = raw_config.get(schema.name, {})
|
||||
result, error = schema.deserialize(values)
|
||||
if error:
|
||||
errors[schema.name] = error
|
||||
if result:
|
||||
config[schema.name] = result
|
||||
if schema.name in sections:
|
||||
sections.remove(schema.name)
|
||||
|
||||
for section in sections:
|
||||
logger.debug('Ignoring unknown config section: %s', section)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user