Change pattern for hostname to node_ids