splunk / terraform-provider-splunk

Terraform Provider for Splunk
Mozilla Public License 2.0
102 stars 75 forks source link

Parsing HEC's UseACK by int, bool and string #158

Closed spurge closed 11 months ago

spurge commented 1 year ago

Resolves #130 by parsing multiple different types of data in the useACKfield.

In our Cloud environment, this field comes as a stringified boolean, such as a "false". Which caused an error as the string wasn't able to be parsed into an int.

These changes will cope with useACK as both int and bool by using a custom json-marshaller ...

There's test cases for all these variants.

spurge commented 11 months ago

Splunk provides another Terraform Provider for it's cloud platform.