tpretz / terraform-provider-zabbix

Terraform Zabbix Provider
MIT License
30 stars 27 forks source link

"inventory_mode" Doesn't update existing host #14

Open mrfreester opened 2 years ago

mrfreester commented 2 years ago

When setting inventory_mode = "manual" on an existing host that was disabled, I received the following error when running terraform apply:

Error: -32602 (Invalid params.): Inventory disabled for host .

with module.common.zabbix_host., on ../common/zabbix.tf line 8, in resource "zabbix_host" "": 8: resource "zabbix_host" "" ***`

mrfreester commented 2 years ago

Workaround, I could set the host inventory to manual through the UI and then terraform would perform the inventory changes.

tpretz commented 2 years ago

Hi, Ran into this myself while adding a few tests to confirm, once that branch matures "should" be fixed.