Skip to content

Parsing error with mapping processors that have a block of Bloblang in them which starts with an empty line #259

@mihaitodor

Description

@mihaitodor

Trying to run the following config:

input:
  generate:
    count: 1
    mapping: root.foo = "bar"
  processors:
    - mapping: |

        root.bar = "baz"

triggers this error:

failed to generate sanitised config: yaml: line 24: did not find expected key

If we remove the empty newline from the mapping block, it works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bloblangBloblang featuresbugSomething isn't workingconfigurationAny tasks or issues relating to Benthos configuration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions