Skip to content

Commit

Permalink
inline withUserAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Apr 8, 2021
1 parent 84c677e commit 30ecfbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cloudprovider/aws/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ type Factory struct {
}

func NewFactory(options cloudprovider.Options) *Factory {
sess := withRegion(session.Must(session.NewSession(&aws.Config{STSRegionalEndpoint: endpoints.RegionalSTSEndpoint})))
sess = withUserAgent(sess)
sess := withUserAgent(withRegion(session.Must(session.NewSession(&aws.Config{STSRegionalEndpoint: endpoints.RegionalSTSEndpoint}))))
ec2api := ec2.New(sess)
subnetProvider := &SubnetProvider{
ec2api: ec2api,
Expand Down

0 comments on commit 30ecfbd

Please sign in to comment.