mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
Azure 计费依赖操作系统类型
This commit is contained in:
@@ -3754,6 +3754,10 @@ func (self *SGuest) GetShortDesc() *jsonutils.JSONDict {
|
||||
desc.Set("int_bandwidth", jsonutils.NewInt(int64(intBw)))
|
||||
}
|
||||
|
||||
if len(self.OsType) > 0 {
|
||||
desc.Add(jsonutils.NewString(self.OsType), "os_type")
|
||||
}
|
||||
|
||||
if priceKey := self.GetMetadata("price_key", nil); len(priceKey) > 0 {
|
||||
desc.Add(jsonutils.NewString(priceKey), "price_key")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user