'Update partial stats locally and populate them to Scheduler.'

def _update(self, context, compute_node):

    if (not self._resource_change(compute_node)):
        return
    nodename = compute_node.hypervisor_hostname
    compute_node.save()
    try:
        inv_data = self.driver.get_inventory(nodename)
        _normalize_inventory_from_cn_obj(inv_data, compute_node)
        self.scheduler_client.set_inventory_for_provider(compute_node.uuid, compute_node.hypervisor_hostname, inv_data)
    except NotImplementedError:
        self.scheduler_client.update_compute_node(compute_node)
    if self.pci_tracker:
        self.pci_tracker.save(context)
