You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in the following error: Error: Invalid output_extract specified ("(?<key>\\S+) (?<type>[a-zA-Z]) (?<value>\\S+)"): regexp failed to match string
Steps to Reproduce
Attempt to create an external check that uses a value besides 'JSON' or 'NAGIOS' for its output_extract
The text was updated successfully, but these errors were encountered:
Terraform Version
Terraform v0.12.13
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
This should create an external check.
The circonus documentation supports arbitrary regular expressions in output_extract https://docs.circonus.com/circonus/checks/check-types/external/#using-the-output-extract
Actual Behavior
What actually happened?
The code limits the output to the phrases "JSON" or "NAGIOS"
https://github.com/terraform-providers/terraform-provider-circonus/blob/57d100d890ac65522b947296bbfacdca05ef55d6/circonus/resource_circonus_check_external.go#L32
This results in the following error:
Error: Invalid output_extract specified ("(?<key>\\S+) (?<type>[a-zA-Z]) (?<value>\\S+)"): regexp failed to match string
Steps to Reproduce
Attempt to create an external check that uses a value besides 'JSON' or 'NAGIOS' for its output_extract
The text was updated successfully, but these errors were encountered: