def validate(cls, value): if not uuidutils.is_uuid_like(value): raise exception.InvalidUUID(uuid=value) return value