Skip to content

grafana_message_template: inconsistent apply result when disable_provenance = true #2618

@moorglade

Description

@moorglade

Terraform Version

1.14.7

Terraform Grafana Provider Version

4.28.1

Grafana Version

12.4.1

Affected Resource(s)

  • grafana_message_template

Terraform Configuration Files

resource "grafana_message_template" "test" {
  name               = "test"
  disable_provenance = true
  template           = "{{ define \"test\" }}test{{ end }}"
}

Expected Behavior

The template should be correctly provisioned in Grafana.

Actual Behavior

terraform apply crashes:

grafana_message_template.test: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to grafana_message_template.test, provider "provider[\"registry.terraform.io/grafana/grafana\"]" produced an unexpected new value: .disable_provenance: was cty.True, but now cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Steps to Reproduce

  1. terraform apply

Important Factoids

The bug is not present in previous provider versions (4.28.0 works fine).

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions