Skip to content

Commit

Permalink
Merge pull request #5110 from fd/patch-1
Browse files Browse the repository at this point in the history
google_pubsub_subscription crashes when ack_deadline_seconds is provided
  • Loading branch information
phinze committed Feb 23, 2016
2 parents b822c6f + 49e76ec commit 1d67fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/google/resource_pubsub_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d67fc4

Please sign in to comment.