mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #16411 from ioito/hotfix/qx-scope-resource-panic
fix(keystone): avoid panic when sync scope reosurce
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user