Open
Description
Steps to reproduce:
main.tf
variable "template_id" {
type = number
}
resource "aap_job" "testing" {
job_template_id = var.template_id
}
Apply the above configuration terraform apply --auto-approve
update the main.tf configuration using
variable "template_id" {
type = number
}
resource "aap_inventory" "testing" {
name = "my_inventory"
}
resource "aap_job" "testing" {
job_template_id = var.template_id
inventory_id = aap_inventory.testing.id
}
Apply the above configuration terraform apply --auto-approve
, the following issue appears
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to aap_job.testing, provider "provider[\"registry.terraform.io/ansible/aap\"]" produced an unexpected new value:
│ .inventory_id: was cty.NumberIntVal(xx), but now cty.NumberIntVal(1).
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
Notes: This is reproducible only if the job template allows specifying the inventory ID at launch.