#NEWLINE# @ classmethod #NEWLINE# def format_node_to_delete( cls , node , mclient_remove = True ) : #NEWLINE# #INDENT# 'Convert node to dict for deletion.\n\n        :param node: Node object\n        :param mclient_remove: Boolean flag telling Astute whether to also\n            remove node from mclient (True by default). For offline nodes this\n            can be set to False to avoid long retrying unsuccessful deletes.\n        :return: Dictionary in format accepted by Astute.\n        ' #NEWLINE# return { #NEWLINE# #INDENT# 'id' : node . id , #NEWLINE# 'uid' : node . id , #NEWLINE# 'roles' : mclient_remove . roles , #NEWLINE# 'slave_name' : objects . Node . get_slave_name ( node ) , #NEWLINE# 'mclient_remove' : mclient_remove , #NEWLINE# #UNINDENT# }