Only pass 'schema' to the validator creation.

This commit is contained in:
Pim van Pelt
2022-03-13 16:48:52 +00:00
parent 0313666f69
commit 881c0faaab
6 changed files with 14 additions and 14 deletions

2
vppcfg
View File

@ -34,7 +34,7 @@ def main():
logging.error("Couldn't read config from %s" % args.config)
sys.exit(-1)
v = Validator(args)
v = Validator(schema=args.schema)
rv, msgs = v.validate(cfg)
if not rv:
for m in msgs: