forked from rodjek/puppet-lint
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
When linting a file with a resource with interpolation, it flags it as missing spaces and adds it—every time.
Expected Behavior
Properly detect if spaces are needed, and if run with --fix
to update it, but not add more spaces after that.
Steps to Reproduce
- Lint a file with this resource:
apache::vhost { 'test-oidc':
custom_fragment => @(EOT)
OIDCProviderMetadataURL xxxxxxxxxxxxxxxxxxxxxxxx
OIDCClientID xxxxxxxxxxxxxxxxxxxxxxxx
OIDCClientSecret xxxxxxxxxxxxxxxxxxxxxxxx
| EOT
}
- Observe that every time, the
OIDCProviderMetadataURL
line has more spaces. After a few invocations ofpuppet-lint --fix
the resource will look like this:
apache::vhost { 'test-oidc':
custom_fragment => @(EOT)
OIDCProviderMetadataURL xxxxxxxxxxxxxxxxxxxxxxxx
OIDCClientID xxxxxxxxxxxxxxxxxxxxxxxx
OIDCClientSecret xxxxxxxxxxxxxxxxxxxxxxxx
| EOT
}
Environment
- Version 4.2.4
- Platform Ubuntu 22.04
- Puppet 7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working