Merge pull request #5110 from fd/patch-1
google_pubsub_subscription crashes when ack_deadline_seconds is provided
This commit is contained in:
commit
1d67fc4bb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue