def get_yaml_config(config_path):
config_path = os.path.expanduser(config_path)<EOL>if not os.path.isfile(config_path):<EOL><INDENT>raise IpaUtilsException(<EOL>'<STR_LIT>' % config_path<EOL>)<EOL><DEDENT>with open(config_path, '<STR_LIT:r>') as f:<EOL><INDENT>config = yaml.safe_load(f)<EOL><DEDENT>return config<EOL>
Load yaml config file and return dictionary.

Todo:
    * This will need refactoring similar to the test search.