code sytle change

This commit is contained in:
TangBin
2018-10-25 19:51:07 +08:00
parent f0c23cce79
commit ba724598fe
+8 -5
View File
@@ -2,21 +2,22 @@ package aws
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/service/ec2"
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/compute/models"
"time"
)
type SEipAddress struct {
region *SRegion
AllocationId string
Bandwidth int
Bandwidth int
Tags TagSpec
Status string
Status string
InstanceId string
AssociationId string
Domain string
@@ -149,7 +150,9 @@ func (self *SRegion) GetEips(eipId string, offset int, limit int) ([]SEipAddress
tagspec := TagSpec{ResourceType: "eip"}
tagspec.LoadingEc2Tags(ip.Tags)
eips = append(eips, SEipAddress{region: self, AllocationId: *ip.AllocationId,
eips = append(eips, SEipAddress{
region: self,
AllocationId: *ip.AllocationId,
Tags: tagspec,
InstanceId: *ip.InstanceId,
AssociationId: *ip.AssociationId,
@@ -234,4 +237,4 @@ func (self *SRegion) DissociateEip(eipId string, instanceId string) error {
func (self *SRegion) UpdateEipBandwidth(eipId string, bw int) error {
return cloudprovider.ErrNotSupported
}
}