mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 09:06:44 +00:00
Merge pull request #5110 from fd/patch-1
google_pubsub_subscription crashes when ack_deadline_seconds is provided
This commit is contained in:
commit
cd3ccbbcfd
@ -75,7 +75,7 @@ func resourcePubsubSubscriptionCreate(d *schema.ResourceData, meta interface{})
|
|||||||
var ackDeadlineSeconds int64
|
var ackDeadlineSeconds int64
|
||||||
ackDeadlineSeconds = 10
|
ackDeadlineSeconds = 10
|
||||||
if v, ok := d.GetOk("ack_deadline_seconds"); ok {
|
if v, ok := d.GetOk("ack_deadline_seconds"); ok {
|
||||||
ackDeadlineSeconds = v.(int64)
|
ackDeadlineSeconds = int64(v.(int))
|
||||||
}
|
}
|
||||||
|
|
||||||
var subscription *pubsub.Subscription
|
var subscription *pubsub.Subscription
|
||||||
|
Loading…
Reference in New Issue
Block a user