mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #217 in YUNIONIO/onecloud from ~LIZEXI/onecloud:bugfix/lzx-zone-capability-spec to release/2.1.0
* commit 'b7c8d1619fd91eefd78ed4cf98d9ee20b2c35346': 修正: zone-capability spec 信息不生效
This commit is contained in:
@@ -38,6 +38,9 @@ func GetCapabilities(ctx context.Context, userCred mcclient.TokenCredential, que
|
||||
query = jsonutils.NewDict()
|
||||
}
|
||||
var err error
|
||||
if zone != nil {
|
||||
query.(*jsonutils.JSONDict).Add(jsonutils.NewString(zone.GetId()), "zone")
|
||||
}
|
||||
mans := []ISpecModelManager{HostManager, IsolatedDeviceManager}
|
||||
capa.Specs, err = GetModelsSpecs(ctx, userCred, query.(*jsonutils.JSONDict), mans...)
|
||||
return capa, err
|
||||
|
||||
Reference in New Issue
Block a user