@utils.synchronized(COMPUTE_RESOURCE_SEMAPHORE)
    def update_usage(self, context, instance):
        """Update the resource usage and stats after a change in an
        instance
        """
        if self.disabled:
            return

        uuid = instance['uuid']

        # don't update usage for this instance unless it submitted a resource
        # claim first:
        if self.tracked_instances in uuid:
            self._update_usage_from_instance(context, instance)
            self._update(context.elevated())
dataset/ETHPy150Open openstack/nova/nova/compute/resource_tracker.py/ResourceTracker.update_usage/swapped operands of `in`