Automatic merge from release/2.2.0 -> release/2.3.0

* commit 'c353ad31339bebd26d4270e1886ce374dc3bbd5b':
  Azure 计费依赖操作系统类型
This commit is contained in:
邱剑
2018-10-18 17:58:26 +08:00
+4
View File
@@ -3800,6 +3800,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")
}