if(action->task == task && (on_node == NULL || safe_str_eq(on_node->details->id, action->node->details->id))) { result = g_list_append(result, action);
if(action->task == task) { if(on_node == NULL) { result = g_list_append(result, action);  } else if(action->node == NULL) {  crm_warn("While looking for %s action on %s, " "found an unallocated one.  " "This could end up creating dups..", task2text(task), on_node->details->id);  } else if(safe_str_eq(on_node->details->id, action->node->details->id)) { result = g_list_append(result, action); }
find_actions(GListPtr input, enum action_tasks task, node_t *on_node){	GListPtr result = NULL;		slist_iter(		action, action_t, input, lpc,		if(action->task == task		   && (on_node == NULL		       || safe_str_eq(on_node->details->id,				      action->node->details->id))) {			result = g_list_append(result, action);		}		);	return result;}