mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #10449 from ioito/hotfix/qx-nat-sku
fix: nat sku env
This commit is contained in:
@@ -42,4 +42,7 @@ type NatSkuDetails struct {
|
||||
apis.EnabledStatusStandaloneResourceDetails
|
||||
|
||||
CloudregionResourceInfo
|
||||
|
||||
// 云环境
|
||||
CloudEnv string `json:"cloud_env"`
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"yunion.io/x/jsonutils"
|
||||
"yunion.io/x/log"
|
||||
@@ -120,6 +121,8 @@ func (manager *SNatSkuManager) FetchCustomizeColumns(
|
||||
EnabledStatusStandaloneResourceDetails: stdRows[i],
|
||||
CloudregionResourceInfo: regRows[i],
|
||||
}
|
||||
|
||||
rows[i].CloudEnv = strings.Split(regRows[i].RegionExternalId, "/")[0]
|
||||
}
|
||||
|
||||
return rows
|
||||
|
||||
Reference in New Issue
Block a user