#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# ( yield templates . make_puppet_task ( uids , self . task ) )