def _set_config(cfg, gen_cfg, name=None):
    if name in gen_cfg:
        cfg.update(gen_cfg[name]['conf'])
    if name is None:
        for name in gen_cfg:
            cfg.update(gen_cfg[name]['conf'])
    return cfg
dataset/ETHPy150Open openstack/sahara/sahara/plugins/spark/config_helper.py/_set_config/original