Automatic merge from release/2.4.0 -> release/2.5.0

* commit '220df08a486d2a5e725c64e3f7cc42437c7ca41f':
  log日志记录external_id
This commit is contained in:
邱剑
2019-02-15 12:11:56 +08:00
+3
View File
@@ -131,6 +131,9 @@ func (model *SStandaloneResourceBase) GetShortDesc(ctx context.Context) *jsonuti
desc := model.SResourceBase.GetShortDesc(ctx)
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
}