'Copy resource values to supplied compute_node.'

def _copy_resources(self, compute_node, resources):

    self.stats.clear()
    self.stats.digest_stats(resources.get('stats'))
    compute_node.stats = copy.deepcopy(self.stats)
    compute_node.ram_allocation_ratio = self.ram_allocation_ratio
    compute_node.cpu_allocation_ratio = self.cpu_allocation_ratio
    compute_node.disk_allocation_ratio = self.disk_allocation_ratio
    compute_node.update_from_virt_driver(resources)
