def _get_general_config_value(conf, option):
    if 'general' in conf and option.name in conf['general']:
        return conf['general'][option.name]
    return option.default_value
dataset/ETHPy150Open openstack/sahara/sahara/plugins/spark/config_helper.py/_get_general_config_value/original