def get_config_values(config_path, section, default='<STR_LIT:default>'):
values = {}<EOL>if not os.path.isfile(config_path):<EOL><INDENT>raise IpaUtilsException(<EOL>'<STR_LIT>' % config_path<EOL>)<EOL><DEDENT>config = configparser.ConfigParser()<EOL>try:<EOL><INDENT>config.read(config_path)<EOL><DEDENT>except Exception:<EOL><INDENT>raise IpaUtilsException(<EOL>'<STR_LIT>'<EOL>)<EOL><DEDENT>try:<EOL><INDENT>values.update(config.items(default))<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>values.update(config.items(section))<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>return values<EOL>
Parse ini config file and return a dict of values.

The provided section overrides any values in default section.