appoptics / terraform-provider-appoptics

Apache License 2.0
4 stars 2 forks source link

Default values for appoptics_dashboard_chart are not handled #56

Open poleszcz opened 1 year ago

poleszcz commented 1 year ago

If chart is defined with only required values:

resource "appoptics_dashboard_chart" "example_chart2" {
  space_id   = appoptics_dashboard.example_dashboard.id
  name       = "Example Chart2"
}

then next terraform plan after creation reveals that in fact chart has more attributes already defined - what is not in line with terraform definition.

  # appoptics_dashboard_chart.example_chart2 must be replaced
-/+ resource "appoptics_dashboard_chart" "example_chart2" {
      ~ id            = "30588061" -> (known after apply)
      - max           = 0 -> null
      - min           = 0 -> null
        name          = "Example Chart2"
      - related_space = 0 -> null
      - type          = "line" -> null # forces replacement
        # (1 unchanged attribute hidden)
    }