From 06c0ffd136892bca685dfa036905ebc0ef46cf27 Mon Sep 17 00:00:00 2001
From: rearcher <123781007@qq.com>
Date: Fri, 15 Dec 2023 14:53:40 +0800
Subject: [PATCH] fix search_key validate

---
 zeus/function/verify/host.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zeus/function/verify/host.py b/zeus/function/verify/host.py
index 3f8bab9..461fc12 100644
--- a/zeus/function/verify/host.py
+++ b/zeus/function/verify/host.py
@@ -52,7 +52,7 @@ class GetHostSchema(Schema):
     """
 
     host_group_list = fields.List(fields.String(), required=True)
-    search_key = fields.String(required=False, validate=lambda s: 50 > len(s) > 0)
+    search_key = fields.String(required=False, validate=lambda s: 50 >= len(s) > 0)
     management = fields.Boolean(required=False)
     status = fields.List(fields.Integer(validate=lambda s: s >= 0), required=False)
     sort = fields.String(required=False, validate=validate.OneOf(["host_name", "host_group_name", ""]))
-- 
2.33.0

