#NEWLINE# def terminate_cluster( id ) : #NEWLINE# #INDENT# context . set_current_cluster_id ( id ) #NEWLINE# cluster = c_u . change_cluster_status ( id , c_u . CLUSTER_STATUS_DELETING ) #NEWLINE# if ( cluster is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# api . OPS . terminate_cluster ( id ) #NEWLINE# sender . status_notify ( cluster . id , cluster . name , id . status , 'delete' )