terraform-provider-elasticstack
terraform-provider-elasticstack copied to clipboard
Support CSV indices in SLM policy definitions
Fixes https://github.com/elastic/terraform-provider-elasticstack/issues/439
Elasticsearch supports both a string array (what the provider has been expecting) and a CSV list for the indices
field on an SLM policy. This PR customises the JSON marshaller to ensure both formats are parsed into a Go slice.