Commit ec3457ab authored by Martin Matějek's avatar Martin Matějek

fixup! WIP; Simple YAML schema validation for plugins

parent f190dd8d
......@@ -66,10 +66,10 @@ class Plugin:
schema_val_set = set(values)
for val in data_vals:
# set comparisons betweem schema.values and data_vals.keys()
# set comparisons between schema.values and data_vals.keys()
diff = schema_val_set - set(val.keys())
if bool(diff):
if diff:
logger.warning("Mandatory attributes are missing: %s", diff)
return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment