mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Automatic merge from release/2.6.0 -> master
* commit '7b0d548651ab455ba24c39ebe293b5c49f4125dd': 取消重复的region信息 返回eip账号信息
This commit is contained in:
@@ -737,18 +737,12 @@ 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")
|
||||
}
|
||||
info := self.getCloudProviderInfo()
|
||||
extra.Update(jsonutils.Marshal(&info))
|
||||
vm := self.GetAssociateVM()
|
||||
if vm != nil {
|
||||
extra.Add(jsonutils.NewString(vm.GetName()), "associate_name")
|
||||
}
|
||||
region := self.GetRegion()
|
||||
if region != nil {
|
||||
extra.Add(jsonutils.NewString(region.GetName()), "cloudregion")
|
||||
extra.Add(jsonutils.NewString(region.GetName()), "region")
|
||||
}
|
||||
return extra
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user