fix bug in get_compute_node_resourece