Commit 2884a118 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

config_data existence check done in function

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent b8b0f55e
......@@ -60,16 +60,8 @@ class ModuleSpec:
non-optional missing values. Set this to False if you want to
validate only a part of a configuration tree (like a list of
non-default values)"""
print("[XX] validate called with data:")
data_def = self.get_config_spec()
print("[XX] data def:")
if 'config_data' not in data_def:
if errors:
errors.append("The is no config_data for this specification")
return False
return _validate_spec_list(data_def['config_data'], full, data, errors)
return _validate_spec_list(data_def, full, data, errors)
def get_module_name(self):
Supports Markdown
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