Merge pull request #5110 from fd/patch-1

google_pubsub_subscription crashes when ack_deadline_seconds is provided
This commit is contained in:
Paul Hinze 2016-02-22 18:54:19 -06:00
commit 1d67fc4bb8
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