Skip to content

Commit

Permalink
make format files
Browse files Browse the repository at this point in the history
  • Loading branch information
haouc committed Dec 16, 2020
1 parent ecdd6f3 commit 1b2f1f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions pkg/awsutils/awsutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func New(useCustomNetworking bool) (*EC2InstanceMetadataCache, error) {
Timeout: httpTimeoutValue,
},
},
))
))
ec2Metadata := ec2metadata.New(awsSession)

cache := &EC2InstanceMetadataCache{}
Expand All @@ -358,7 +358,7 @@ func New(useCustomNetworking bool) (*EC2InstanceMetadataCache, error) {

sess, err := session.NewSession(
&aws.Config{
Region: aws.String(cache.region),
Region: aws.String(cache.region),
MaxRetries: aws.Int(15),
HTTPClient: &http.Client{
Timeout: httpTimeoutValue,
Expand Down Expand Up @@ -1427,7 +1427,7 @@ func (cache *EC2InstanceMetadataCache) getFilteredListOfNetworkInterfaces() ([]*
}

input := &ec2.DescribeNetworkInterfacesInput{
Filters: []*ec2.Filter{tagFilter, statusFilter},
Filters: []*ec2.Filter{tagFilter, statusFilter},
MaxResults: aws.Int64(describeENIPageSize),
}

Expand Down
9 changes: 5 additions & 4 deletions pkg/ec2wrapper/ec2wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
package ec2wrapper

import (
"net/http"
"os"
"strconv"
"time"

"github.com/aws/amazon-vpc-cni-k8s/pkg/ec2metadatawrapper"
"github.com/aws/amazon-vpc-cni-k8s/pkg/utils/logger"
"github.com/aws/aws-sdk-go/aws"
Expand All @@ -10,10 +15,6 @@ import (
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"
"github.com/pkg/errors"
"net/http"
"os"
"strconv"
"time"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/publisher/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func New(ctx context.Context) (Publisher, error) {
MaxRetries: aws.Int(15),
HTTPClient: &http.Client{
Timeout: httpTimeoutValue,
},
},
},
))

Expand Down

0 comments on commit 1b2f1f6

Please sign in to comment.