Merge pull request #696 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-eip-detail to release/2.2.0

* commit 'bd77db90407e8276bfee9bf4633bcdfe388f745b':
  EIP详情添加公有云信息
This commit is contained in:
邱剑
2018-12-08 18:00:57 +08:00
+3
View File
@@ -673,6 +673,9 @@ func (self *SElasticip) GetCustomizeColumns(ctx context.Context, userCred mcclie
}
func (self *SElasticip) getMoreDetails(extra *jsonutils.JSONDict) *jsonutils.JSONDict {
if cloudprovider := self.GetCloudprovider(); cloudprovider != nil {
extra.Add(jsonutils.NewString(cloudprovider.Provider), "provider")
}
vm := self.GetAssociateVM()
if vm != nil {
extra.Add(jsonutils.NewString(vm.GetName()), "associate_name")