ably / terraform-provider-ably

Ably's Terraform Provider, enabling you to manage your Ably account programmatically.
https://registry.terraform.io/providers/ably/ably
Apache License 2.0
11 stars 2 forks source link

Fix: Queue 'stats_publish_rate' is not an integer. #141

Closed kandreasyan closed 1 year ago

kandreasyan commented 1 year ago

I am getting errors when trying to update the queue after creation. I think the issue is obvious since we get 0.6 or just 0.0 as a value of publish_rate meanwhile Terraform expects an Int64.


│ Error: Error updating Resource
│ 
│   with ably_queue.kafka-connect-ably-example,
│   on ably.tf line 35, in resource "ably_queue" "kafka-connect-ably-example":
│   35: resource "ably_queue" "kafka-connect-ably-example" {
│ 
│ Could not update resource, unexpected error: json: cannot unmarshal number 0.6 into Go struct field Stats.stats.publishRate of type int
Morganamilo commented 1 year ago

Thanks for the report. I'll check if any other stats may be floats too.

sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-2982