Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puppet Heredocs error #234

Open
deanfr opened this issue Feb 14, 2025 · 1 comment
Open

Puppet Heredocs error #234

deanfr opened this issue Feb 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@deanfr
Copy link

deanfr commented Feb 14, 2025

Describe the Bug

puppet-lint version: 4.2.4
ruby version: 3.2.3-p157
platform: x86_64-linux
file path: manifests/issue.pp
file contents:

$cmd1 = @("EOT")
class_id=${class_id}
src_ips="${src_ips}"
parent=${parent}
device=${device}
| EOT

error:

NoMethodError: undefined method `length' for nil:NilClass
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-strict_indent-check-3.0.0/lib/puppet-lint/plugins/check_strict_indent.rb:132:in `block in check'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-strict_indent-check-3.0.0/lib/puppet-lint/plugins/check_strict_indent.rb:49:in `each'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-strict_indent-check-3.0.0/lib/puppet-lint/plugins/check_strict_indent.rb:49:in `check'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/checkplugin.rb:21:in `run'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/checks.rb:61:in `block in run'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/checks.rb:58:in `each'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/checks.rb:58:in `run'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint.rb:226:in `run'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/bin.rb:85:in `block in run'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/bin.rb:80:in `each'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/lib/puppet-lint/bin.rb:80:in `run'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/gems/puppet-lint-4.2.4/bin/puppet-lint:7:in `<top (required)>'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/bin/puppet-lint:25:in `load'
/opt/puppetlabs/pdk/share/cache/ruby/3.2.0/bin/puppet-lint:25:in `<main>'

Expected Behavior

A clear and concise description of what you expected to happen.

Steps to Reproduce

pdk validate

Environment

puppet-lint version: 4.2.4
ruby version: 3.2.3-p157
platform: x86_64-linux

Additional Context

Add any other context about the problem here.

@deanfr deanfr added the bug Something isn't working label Feb 14, 2025
@ekohl
Copy link

ekohl commented Feb 14, 2025

I think this is a bug in https://github.com/voxpupuli/puppet-lint-strict_indent-check and you should file the issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants