fix(keystone): avoid panic when sync scope reosurce

This commit is contained in:
ioito
2023-04-11 10:49:27 +08:00
parent 7b0d996a0c
commit 95f6732e34
@@ -23,6 +23,7 @@ import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/gotypes"
"yunion.io/x/pkg/util/httputils"
"yunion.io/x/pkg/utils"
@@ -115,6 +116,9 @@ func refreshScopeResourceCount(ctx context.Context) error {
}
continue
}
if gotypes.IsNil(ret) {
continue
}
if _, ok := serviceBlackList[srvId]; ok {
delete(serviceBlackList, srvId)
}