#NEWLINE# def _parse_sp_template_list( self , ucsm_ip , sp_template_config ) : #NEWLINE# #INDENT# sp_template_list = [ ] #NEWLINE# for sp_template_temp in sp_template_config : #NEWLINE# #INDENT# sp_template_list = sp_template_temp . split ( ) #NEWLINE# for sp_template in sp_template_list : #NEWLINE# #INDENT# ( sp_template_path , sep , template_hosts ) = sp_template . partition ( ':' ) #NEWLINE# if ( ( not sp_template_path ) or ( not sep ) or ( not template_hosts ) ) : #NEWLINE# #INDENT# raise cfg . Error ( ( _ ( 'UCS Mech Driver: Invalid Service Profile Template config %s' ) % sp_template_config ) ) #NEWLINE# #UNINDENT# ( sp_temp , sep , hosts ) = template_hosts . partition ( ':' ) #NEWLINE# LOG . debug ( 'SP Template Path: %s, SP Template: %s, Hosts: %s' , sp_template_path , sp_temp , hosts ) #NEWLINE# host_list = hosts . split ( ',' ) #NEWLINE# for host in host_list : #NEWLINE# #INDENT# value = ( ucsm_ip , sp_template_path , sp_temp ) #NEWLINE# self . sp_template_dict [ host ] = value #NEWLINE# LOG . debug ( 'SP Template Dict key: %s, value: %s' , host , value )