# Reproduces the real netem-link defect (DOCFIX-194): a destroy-time provisioner
# may reference ONLY self/count.index/each.key -- never var.*. OpenTofu rejects
# this at INIT. Uses terraform_data (a builtin) so the fixture needs NO provider
# download: the harness stays fast and offline.
variable "target" {
  type    = string
  default = "host"
}

resource "terraform_data" "broken" {
  provisioner "local-exec" {
    when    = destroy
    command = "echo ${var.target}"
  }
}
