#NEWLINE# def load_yaml( path ) : #NEWLINE# #INDENT# all_config = [ ] #NEWLINE# for file_name in glob . glob ( '{}/*yaml' . format ( path ) ) : #NEWLINE# #INDENT# with open ( file_name , 'r' ) as yf : #NEWLINE# #INDENT# log . info ( 'Processing config file {}' , file_name ) #NEWLINE# try : #NEWLINE# #INDENT# yaml_load = yaml . load ( yf ) #NEWLINE# all_config . append ( yaml_load ) #NEWLINE# #UNINDENT# except yaml . YAMLError : #NEWLINE# #INDENT# log . exception ( 'Error parsing {}' , yf ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return all_config