mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
添加腾讯云计费信息
This commit is contained in:
@@ -147,6 +147,9 @@ func (self *SInstance) GetMetadata() *jsonutils.JSONDict {
|
||||
data.Add(jsonutils.NewString(self.image.OsName), "os_distribution")
|
||||
}
|
||||
|
||||
priceKey := fmt.Sprintf("%s::%s", self.host.zone.Zone, self.InstanceType)
|
||||
data.Add(jsonutils.NewString(priceKey), "price_key")
|
||||
|
||||
secgroupIds := jsonutils.NewArray()
|
||||
for _, secgroupId := range self.SecurityGroupIds {
|
||||
data.Add(jsonutils.NewString(secgroupId), "secgroupId")
|
||||
|
||||
@@ -34,7 +34,6 @@ type SZone struct {
|
||||
refreshTime time.Time
|
||||
|
||||
Zone string
|
||||
ZoneId string
|
||||
ZoneName string
|
||||
ZoneState string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user