From 0a5ca41d3d8e0166521fe307e0f4c38d27231aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Thu, 18 Oct 2018 17:21:12 +0800 Subject: [PATCH] =?UTF-8?q?Azure=20=E8=AE=A1=E8=B4=B9=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E7=B3=BB=E7=BB=9F=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/guests.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/compute/models/guests.go b/pkg/compute/models/guests.go index ca7344983f..7be1c8f850 100644 --- a/pkg/compute/models/guests.go +++ b/pkg/compute/models/guests.go @@ -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") }