#NEWLINE# def serialize( self ) : #NEWLINE# #INDENT# q_nodes = objects . Cluster . get_nodes_not_for_deletion ( self . cluster ) #NEWLINE# nodes = set ( q_nodes . filter_by ( status = consts . NODE_STATUSES . ready ) ) #NEWLINE# nodes . update ( self . nodes ) #NEWLINE# uids = [ n . uid for n in nodes ] #NEWLINE# serialized_nodes = self . _serialize_nodes ( nodes ) #NEWLINE# data = yaml . safe_dump ( { #NEWLINE# #INDENT# 'nodes' : serialized_nodes , #NEWLINE# #UNINDENT# } ) #NEWLINE# path = self . task [ 'parameters' ] [ 'path' ] #NEWLINE# ( yield templates . make_upload_task ( uids , path = path , data = data ) )