From 2606a9831a61ccb97eb2f23ff12c67ae20ca5895 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Fri, 22 Sep 2023 00:55:29 +0800 Subject: [PATCH] fix: charset mismatch in tenant cache convert_ids --- pkg/cloudcommon/db/tenantcache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudcommon/db/tenantcache.go b/pkg/cloudcommon/db/tenantcache.go index 9cb45d8072..a047c4da99 100644 --- a/pkg/cloudcommon/db/tenantcache.go +++ b/pkg/cloudcommon/db/tenantcache.go @@ -581,7 +581,7 @@ func (manager *STenantCacheManager) ConvertIds(ids []string, isDomain bool) ([]s q = manager.GetTenantQuery("id") } q = q.Filter(sqlchemy.OR( - sqlchemy.In(q.Field("id"), ids), + sqlchemy.In(q.Field("id"), stringutils2.RemoveUtf8Strings(ids)), sqlchemy.In(q.Field("name"), ids), )) q = q.Distinct()