aws: fix test breakage due to upstream breaking change #2891
This commit is contained in:
parent
41fce02bd3
commit
ca19688316
|
@ -6,6 +6,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
|
"github.com/aws/aws-sdk-go/aws/session"
|
||||||
"github.com/aws/aws-sdk-go/service/ec2"
|
"github.com/aws/aws-sdk-go/service/ec2"
|
||||||
"github.com/mitchellh/packer/builder/amazon/common"
|
"github.com/mitchellh/packer/builder/amazon/common"
|
||||||
builderT "github.com/mitchellh/packer/helper/builder/testing"
|
builderT "github.com/mitchellh/packer/helper/builder/testing"
|
||||||
|
@ -160,7 +161,8 @@ func testEC2Conn() (*ec2.EC2, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return ec2.New(config), nil
|
session := session.New(config)
|
||||||
|
return ec2.New(session), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const testBuilderAccBasic = `
|
const testBuilderAccBasic = `
|
||||||
|
|
Loading…
Reference in New Issue