From 893bfb3ff4a2b40b6ea74780d4ea744edf023e83 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 24 Feb 2016 13:55:01 -0600 Subject: [PATCH] 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 ``` --- builtin/providers/aws/resource_aws_sns_topic_subscription.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_sns_topic_subscription.go b/builtin/providers/aws/resource_aws_sns_topic_subscription.go index cece62b8a..0b29fd0ae 100644 --- a/builtin/providers/aws/resource_aws_sns_topic_subscription.go +++ b/builtin/providers/aws/resource_aws_sns_topic_subscription.go @@ -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)