#NEWLINE# def calculate_changes( self , desired_configuration , cluster_state , local_state ) : #NEWLINE# #INDENT# self . calculate_inputs . append ( ( cluster_state . get_node ( uuid = self . node_uuid , hostname = self . hostname ) , desired_configuration , cluster_state ) ) #NEWLINE# calculated = self . calculated_actions . pop ( 0 ) #NEWLINE# if isinstance ( cluster_state , Exception ) : #NEWLINE# #INDENT# raise calculated #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return calculated