def update_from_instance(self, usage, sign=1):
        if not self._mgr.extensions:
            return

        if sign == 1:
            self._mgr.map_method('add_instance', usage)
        else:
            self._mgr.map_method('remove_instance', usage)
Update the resource information to reflect the allocation for
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/compute/resources/__init__.py/ResourceHandler.update_from_instance