Skip to content

Terraform export multiline predicate value causes broken filter #47

Open
@rocktavious

Description

@rocktavious

A customer using our CLI terraform export got the following filter exported

resource "opslevel_filter" "all_kotlin_services" {
  name = "All Kotlin services"
  connective = ""
  
  predicate {
    key = "language"
    key_data = ""
    type = "equals"
    value = <<-EOT
Kotlin
EOT
  }

}  

But this cased the filter to return 0 services because of the multiline nature of the predicate value having newlines before and after the word "Kotlin"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions