def _vpn_for(self, context, project_id):
        """Get the VPN instance for a project ID."""
        for instance in db.instance_get_all_by_project(context, project_id):
            if (instance['image_id'] == str(FLAGS.vpn_image_id)
                and not [vm_states.DELETED] in instance['vm_state']):
                return instance
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/ec2/admin.py/AdminController._vpn_for/swapped operands of `in`