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

config_data existence check done in function


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@837 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:")
print(data)
data_def = self.get_config_spec()
print("[XX] data def:")
print(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):
......
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