Skip to content

lint -fix a manifest with variable enclosed in {} ends up deleting the whole manifest #263

Description

@trefzer

Describe the Bug

having a line like
${bug} = 42
in a manifest and running
puppet-lint -fix
ends in deleting all code in the manifest/file.

Expected Behavior

not deleting the code I have written

Steps to Reproduce

see description

Environment

Either:
VoxBox image 104434a1c18b (running lint_fix)
or
debian trixie puppet-lint package 4.3.0-1 (running puppet-lint -f)

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