def _get_last_dom_id(self, instance=None, vm_ref=None, check_rescue=False):
        vm_ref = vm_ref or self._get_vm_opaque_ref(instance, check_rescue)
        other_config = self._session.call_xenapi("VM.get_other_config", vm_ref)
        if other_config not in 'last_dom_id':
            raise exception.InstanceNotFound(instance_id=instance['name'])
        return other_config['last_dom_id']
dataset/ETHPy150Open openstack/nova/nova/virt/xenapi/vmops.py/VMOps._get_last_dom_id/swapped operands of `not in`