fix(region): aws sync vpc access mode bugfix

This commit is contained in:
TangBin
2020-12-26 09:50:21 +08:00
parent ea7ea1f08c
commit 01d5977bd6
3 changed files with 5 additions and 4 deletions
+5 -2
View File
@@ -286,6 +286,9 @@ func (self SI18n) GetExternalId() string {
func (self *SI18n) Lookup(ctx context.Context) string {
entry := i18n.NewTableEntry().CN(self.Cn).EN(self.En)
v, _ := entry.Lookup(ctx)
return v
if v, ok := entry.Lookup(ctx); ok {
return v
}
return self.KeyValue
}
-1
View File
@@ -14,7 +14,6 @@ type SInternetGateway struct {
Attachments []InternetGatewayAttachment `json:"Attachments"`
InternetGatewayID string `json:"InternetGatewayId"`
OwnerID string `json:"OwnerId"`
Tags []interface{} `json:"Tags"`
}
type InternetGatewayAttachment struct {
-1
View File
@@ -428,7 +428,6 @@ func (self *SVpc) GetExternalAccessMode() string {
igws, err := self.region.GetInternetGateways(self.GetId())
if err != nil {
log.Errorf("GetExternalAccessMode.GetInternetGateways %s", err)
}
if len(igws) > 0 {