From 49e76ecf58dc2601e147e373ae5957019c03febb Mon Sep 17 00:00:00 2001 From: Simon Menke Date: Fri, 12 Feb 2016 12:41:20 +0100 Subject: [PATCH] google_pubsub_subscription crashes when ack_deadline_seconds is provided --- builtin/providers/google/resource_pubsub_subscription.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/google/resource_pubsub_subscription.go b/builtin/providers/google/resource_pubsub_subscription.go index 03e6f3123846..c006818f664b 100644 --- a/builtin/providers/google/resource_pubsub_subscription.go +++ b/builtin/providers/google/resource_pubsub_subscription.go @@ -75,7 +75,7 @@ func resourcePubsubSubscriptionCreate(d *schema.ResourceData, meta interface{}) var ackDeadlineSeconds int64 ackDeadlineSeconds = 10 if v, ok := d.GetOk("ack_deadline_seconds"); ok { - ackDeadlineSeconds = v.(int64) + ackDeadlineSeconds = int64(v.(int)) } var subscription *pubsub.Subscription