Merge pull request #12965 from ioito/hotfix/qx-disabled-brands-empty-array

fix(region): show empty array disabled brands
This commit is contained in:
Zexi Li
2021-12-22 10:27:40 +08:00
committed by GitHub
+1
View File
@@ -367,6 +367,7 @@ func getBrands(region *SCloudregion, zone *SZone, domainId string, capa *SCapabi
capa.NetworkManageBrands = append(capa.NetworkManageBrands, api.ONECLOUD_BRAND_ONECLOUD)
capa.DisabledBrands = []string{}
var appendBrand = func(enabled *[]string, disabled *[]string, readOnlyEnabled *[]string, readOnlyDisabled *[]string, brand, capability string, isEnable, readOnly bool) {
if readOnly {
if isEnable {