

def _parse_raw_config(self):
    '\n        Validate the parsed yaml structure. This method raises on validation errors.\n\n        If validation is successful, add the job configs to this class instance.\n\n        :param config: The parsed yaml data\n        :type config: dict\n        '
    config = yaml.safe_load(self._raw_yaml_contents)
    if (not isinstance(config, dict)):
        raise ConfigParseError('The yaml config file could not be parsed to a dictionary')
    self._job_configs = {
        
    }
    for (job_name, job_config_sections) in config.items():
        self._job_configs[job_name] = JobConfig.construct_from_dict(job_name, job_config_sections)
    if (len(self._job_configs) == 0):
        raise ConfigParseError('No jobs found in the config.')

dataset/ETHPy150Open box/ClusterRunner/app/master/cluster_runner_config.py ClusterRunnerConfig._parse_raw_config/original