Closed marek130 closed 3 months ago
/opt/puppetlabs/pdk/share/cache/ruby/2.7.0/gems/puppet-lint-manifest_whitespace-check-0.3.0/lib/puppet-lint/plugins/check_manifest_whitespace_opening_brace.rb:87:in `fix'
I think this is actually in https://github.com/voxpupuli/puppet-lint-manifest_whitespace-check and in particular here: https://github.com/voxpupuli/puppet-lint-manifest_whitespace-check/blob/527d8690bd90d88bf4a9fb0f911b82a29e579813/lib/puppet-lint/plugins/check_manifest_whitespace_opening_brace.rb#L90
It wants to correct this part:
notify {"${notify}": }
To:
notify { "${notify}": }
Somehow that fails. It may very well be fixed with https://github.com/voxpupuli/puppet-lint-manifest_whitespace-check/commit/0697e65dcb032b95a38da839c9d166198ad5958e that's currently unreleased.
Hey @marek130 it seems the fix as @ekohl has mentioned above has now been released. I am going to close this issue, however if you disagree, please accept my apology and feel free to reopen.
Thank you for flagging this issue to us, the team really appreciate your input.
Describe the Bug
When a manifest contains notify {"${notify}": } , the puppet lint is failing. The variable name notify should be ok because it is not keyword if I am correct.
Expected Behavior
Running validation with autofix correctly
Steps to Reproduce
Steps to reproduce the behavior: 1.write a manifest
puppet-lint version: 4.0.0 ruby version: 2.7.8-p225 platform: x86_64-linux file path: manifests/audit.pp file contents:
error: