From ba724598fe230e388538ca26afba573e30fc7ed1 Mon Sep 17 00:00:00 2001 From: TangBin Date: Thu, 25 Oct 2018 19:51:07 +0800 Subject: [PATCH] code sytle change --- pkg/util/aws/eip.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkg/util/aws/eip.go b/pkg/util/aws/eip.go index 7e41d8ee9f..b300cc3346 100644 --- a/pkg/util/aws/eip.go +++ b/pkg/util/aws/eip.go @@ -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 -} \ No newline at end of file +}