#NEWLINE# def del_template_by_name( con , srv , name ) : #NEWLINE# #INDENT# templates = srv . get_server_profile_templates ( ) #NEWLINE# for template in templates : #NEWLINE# #INDENT# if ( template [ 'name' ] == name ) : #NEWLINE# #INDENT# print ( ( 'Removing Profile Template %s' % template [ 'name' ] ) ) #NEWLINE# ret = srv . remove_server_profile_template ( template ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# print ( 'Profile Template: ' , name , ' not found' )