Skip to content

Commit 076086e

Browse files
daemituskjwardy
authored andcommitted
Fix output inconsistent result (default_integrations/monitoring) (elastic#841)
* Fix output inconsistent result (default_integrations/monitoring) * Update changelog
1 parent c143da4 commit 076086e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Changes
88

9+
- Fix inconsistent output errors in `elasticstack_fleet_output` for `default_integrations` and `default_monitoring`. ([#841](https://github.com/elastic/terraform-provider-elasticstack/pull/841))
910
- Fix secret handling `elasticstack_fleet_integration_policy` resource. ([#821](https://github.com/elastic/terraform-provider-elasticstack/pull/821))
1011
- Fix merge values for `elasticstack_kibana_synthetics_monitor` monitor locations ([#823](https://github.com/elastic/terraform-provider-elasticstack/pull/823))
1112
- Migrate to a v8 Elasticsearch client ([#832](https://github.com/elastic/terraform-provider-elasticstack/pull/832))
@@ -15,7 +16,6 @@
1516
- Fix merge values for `elasticstack_kibana_synthetics_monitor` monitor locations ([#823](https://github.com/elastic/terraform-provider-elasticstack/pull/823)
1617
- Add `elasticstack_elasticsearch_index_template` data source ([#828](https://github.com/elastic/terraform-provider-elasticstack/pull/828))
1718

18-
1919
## [0.11.8] - 2024-10-02
2020

2121
- Add key_id to the `elasticstack_elasticsearch_api_key` resource. ([#789](https://github.com/elastic/terraform-provider-elasticstack/pull/789))

internal/fleet/output/schema.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-framework/attr"
99
"github.com/hashicorp/terraform-plugin-framework/resource"
1010
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
11+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
1112
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
1213
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1314
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -67,11 +68,15 @@ func getSchema() schema.Schema {
6768
},
6869
"default_integrations": schema.BoolAttribute{
6970
Description: "Make this output the default for agent integrations.",
71+
Computed: true,
7072
Optional: true,
73+
Default: booldefault.StaticBool(false),
7174
},
7275
"default_monitoring": schema.BoolAttribute{
7376
Description: "Make this output the default for agent monitoring.",
77+
Computed: true,
7478
Optional: true,
79+
Default: booldefault.StaticBool(false),
7580
},
7681
"config_yaml": schema.StringAttribute{
7782
Description: "Advanced YAML configuration. YAML settings here will be added to the output section of each agent policy.",

0 commit comments

Comments
 (0)