Open maany opened 4 years ago
More Info:
if param_type in expandable_types:
config[param] = get_final_config(
config = config[param],
expected_params = expandable_types[param_type],
defaults = defaults,
meta_info = meta_info,
expandable_types = expandable_types,
indent = indent + 1)
continue
else:
match = re.match("list\((.*)\)", param_type)
if match and match.group(1) in expandable_types:
final_values = []
base_type = match.group(1)
for index, value in enumerate(config[param]):
if index:
print " " * (indent + 1) + "-----------"
final_value = get_final_config(
config = value,
expected_params = expandable_types[base_type],
defaults = defaults,
meta_info = meta_info,
expandable_types = expandable_types,
indent = indent + 1)
final_values.append(final_value)
config[param] = final_values
continue
is_required = expected_params[param]["required"]
use_default = expected_params[param]["use_default"]
is_specified = True if param in config else False
supp_config is expandable in the base_schema, but if it is not specified in the site_level_config, the value of config is None in the last line of this script. This should be changed to
is_specified = False is config or param not in config else True
Describe the bug A clear and concise description of what the bug is. What input files were supplied to the compiler? What output/error did you get? Error:
Input
Output
https://github.com/WLCG-Lightweight-Sites/simple_grid_yaml_compiler/blob/master/simple_grid_yaml_compiler/compiler/processor_config_schemas.py#L105 If param is optional in this line (supplemental_config, lifecycle_hooks, preferred_tech_stack), then KeyError will be thrown.
To Reproduce Run against master branch of simple_grid_site_repo
Expected behavior
Desktop (please complete the following information):
Additional context Add any other context about the problem here.