mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
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