def _load_config(section, options, default_value='', filename=INI_FILE):
    '''
    Get values for some options and a given section from a config file.

    :param section: Section Name
    :param options: List of options
    :param default_value: Default value if an option doesn't have a value. Default is empty string.
    :param filename: config file. Default is INI_FILE.
    :return:
    '''
    results = {}
    if not options:
        return results
    with salt.utils.files.fopen(filename, 'r') as config_file:
        config_parser = configparser.RawConfigParser(dict_type=CaseInsensitiveDict)
        config_parser.readfp(config_file)
        for option in options:
            results[option] = _remove_quotes(config_parser.get(section, option)) \
                if config_parser.has_option(section, option) else default_value

    return results
def _load_config ( section , options , default_value = '' , filename = INI_FILE ) : results = { } if not options : return results with salt . utils . files . fopen ( filename , 'r' ) as config_file : config_parser = configparser . RawConfigParser ( dict_type = CaseInsensitiveDict ) config_parser . readfp ( config_file ) for option in options : results [ option ] = _remove_quotes ( config_parser . get ( section , option ) ) if config_parser . has_option ( section , option ) else default_value return results
Get values for some options and a given section from a config file.

    :param section: Section Name
    :param options: List of options
    :param default_value: Default value if an option doesn't have a value. Default is empty string.
    :param filename: config file. Default is INI_FILE.
    :return: