mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
Merge pull request #1054 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-short-desc-external-id to release/2.3.0
* commit '2d7a17464c3997c0b57853e5a86b66c37f4d3ff2': log日志记录external_id
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user