Merge pull request #7215 from hashicorp/revert-wrong-push
Revert commitb8b3e64cff
&993af36f2e
This commit is contained in:
commit
4fef738363
|
@ -15,7 +15,7 @@ import (
|
|||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/ec2"
|
||||
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"
|
||||
cleanhttp "github.com/hashicorp/go-cleanhttp"
|
||||
"github.com/hashicorp/go-cleanhttp"
|
||||
"github.com/hashicorp/packer/template/interpolate"
|
||||
)
|
||||
|
||||
|
@ -52,7 +52,7 @@ func (c *AccessConfig) Session() (*session.Session, error) {
|
|||
|
||||
// default is 3, and when it was causing failures for users being throttled
|
||||
// retries are exponentially backed off.
|
||||
config = config.WithMaxRetries(20)
|
||||
config = config.WithMaxRetries(8)
|
||||
|
||||
region, err := c.region()
|
||||
if err != nil {
|
||||
|
|
|
@ -68,14 +68,3 @@ func TestAccessConfigPrepare_RegionRestricted(t *testing.T) {
|
|||
t.Fatal("We should be in gov region.")
|
||||
}
|
||||
}
|
||||
|
||||
func TestAccessConfig_NoCredentialsFailsQuickly(t *testing.T) {
|
||||
c := &AccessConfig{
|
||||
RawRegion: "not-empty",
|
||||
}
|
||||
_, err := c.Session()
|
||||
if err == nil {
|
||||
t.Errorf("AccessConfig.Session() error is nil")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue