google_pubsub_subscription crashes when ack_deadline_seconds is provided

This commit is contained in:
Simon Menke 2016-02-12 12:41:20 +01:00
parent 35cac85579
commit 49e76ecf58
1 changed files with 1 additions and 1 deletions

View File

@ -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