aws: fix test breakage due to upstream breaking change #2891

This commit is contained in:
Mark Peek 2015-10-31 11:04:50 -07:00
parent 41fce02bd3
commit ca19688316
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
"testing"
"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/mitchellh/packer/builder/amazon/common"
builderT "github.com/mitchellh/packer/helper/builder/testing"
@ -160,7 +161,8 @@ func testEC2Conn() (*ec2.EC2, error) {
return nil, err
}
return ec2.New(config), nil
session := session.New(config)
return ec2.New(session), nil
}
const testBuilderAccBasic = `