provider/aws: Fix int overflow on 386 builds

386 architecture builds were failing with:

```
builtin/providers/aws/resource_aws_sns_topic_subscription.go:216: constant 60000000000 overflows int
```
This commit is contained in:
Paul Hinze 2016-02-24 13:55:01 -06:00
parent 242f088309
commit 893bfb3ff4
1 changed files with 3 additions and 2 deletions

View File

@ -8,9 +8,10 @@ import (
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/helper/schema"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/sns"
"time"
)
const awsSNSPendingConfirmationMessage = "pending confirmation"
@ -213,7 +214,7 @@ func subscribeToSNSTopic(d *schema.ResourceData, snsconn *sns.SNS) (output *sns.
log.Printf("[DEBUG] SNS create topic subscription is pending so fetching the subscription list for topic : %s (%s) @ '%s'", endpoint, protocol, topic_arn)
err = resource.Retry(time.Duration(int(time.Minute)*confirmation_timeout_in_minutes), func() error {
err = resource.Retry(time.Duration(confirmation_timeout_in_minutes)*time.Minute, func() error {
subscription, err := findSubscriptionByNonID(d, snsconn)