A dictionary of dictionaries of sample metadata, using test name as keys,
dictionaries of sample metadata as value.
job_file = job_file.replace(JOB_STONEWALL_PARAMETER, "")
config = ConfigParser.ConfigParser()
config.readfp(io.BytesIO(job_file))
sections = config.__dict__["_sections"]
global_metadata = {}
After Change
if section != GLOBAL:
metadata = {}
metadata.update(dict(config.items(section)))
metadata.update(global_metadata)
if JOB_STONEWALL_PARAMETER in metadata:
del metadata[JOB_STONEWALL_PARAMETER]
section_metadata[section] = metadata
return section_metadata