'Update one existing Inventory of the same resource class.
Fails if no Inventory of the same class is present.'

def update_inventory(self, inventory):

    exceeded = _update_inventory(self._context, self, inventory)
    for (uuid, rclass) in exceeded:
        LOG.warning(_LW('Resource    provider    %(uuid)s    is    now    over-capacity    for    %(resource)s'), {'uuid': uuid, 'resource': rclass})
    self.obj_reset_changes()
