From 2d7a17464c3997c0b57853e5a86b66c37f4d3ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 15 Feb 2019 11:56:12 +0800 Subject: [PATCH] =?UTF-8?q?log=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95external?= =?UTF-8?q?=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cloudcommon/db/standalone.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cloudcommon/db/standalone.go b/pkg/cloudcommon/db/standalone.go index 935e53d74c..5ab5bcb9cd 100644 --- a/pkg/cloudcommon/db/standalone.go +++ b/pkg/cloudcommon/db/standalone.go @@ -132,6 +132,9 @@ func (model *SStandaloneResourceBase) GetShortDesc() *jsonutils.JSONDict { desc := model.SResourceBase.GetShortDesc() desc.Add(jsonutils.NewString(model.GetName()), "name") desc.Add(jsonutils.NewString(model.GetId()), "id") + if len(model.ExternalId) > 0 { + desc.Add(jsonutils.NewString(model.ExternalId), "external_id") + } return desc }