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

Wrong constant name boolean_base_rule (NameError) #224

Closed
jeremiahbailey opened this issue Jun 6, 2019 · 3 comments · Fixed by #225
Closed

Wrong constant name boolean_base_rule (NameError) #224

jeremiahbailey opened this issue Jun 6, 2019 · 3 comments · Fixed by #225
Assignees

Comments

@jeremiahbailey
Copy link

When running cfn_nag_scan --input-path filename.yml I get the error below.
I have tried with both versions 0.4.10 and 0.4.11. I have not been able to find an answer either in this project or through Google searches. Thoughts?

Full output:
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/custom_rule_loader.rb:198:in const_get': wrong constant name boolean_base_rule (NameError) from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/custom_rule_loader.rb:198:in block in discover_rule_classes'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/custom_rule_loader.rb:194:in each' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/custom_rule_loader.rb:194:in discover_rule_classes'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/custom_rule_loader.rb:85:in filter_rule_classes' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/custom_rule_loader.rb:55:in execute_custom_rules'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag.rb:80:in audit' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag.rb:58:in block in audit_aggregate_across_files'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag.rb:55:in each' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag.rb:55:in audit_aggregate_across_files'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag.rb:29:in audit_aggregate_across_files_and_render_results' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag_executor.rb:47:in execute_aggregate_scan'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/lib/cfn-nag/cfn_nag_executor.rb:27:in scan' from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cfn-nag-0.4.10/bin/cfn_nag_scan:11:in <top (required)>'
from C:/Ruby26-x64/bin/cfn_nag_scan:23:in load' from C:/Ruby26-x64/bin/cfn_nag_scan:23:in

'

@jesseadams
Copy link

@JT-Bailey Thanks for your report. I am going to attempt to reproduce this shortly. In the meantime, you can pin to 0.4.9.

@jesseadams jesseadams self-assigned this Jun 6, 2019
@jesseadams
Copy link

This bug is windows specific.

@jesseadams
Copy link

Reproduced on Windows 10 VM

  • Worked on bash 4.4.19 with ruby 2.5.1p57
  • Did not work via Command Prompt with ruby 2.5.5p157

jesseadams pushed a commit that referenced this issue Jun 6, 2019
@ghost ghost closed this as completed in #225 Jun 6, 2019
ghost pushed a commit that referenced this issue Jun 6, 2019
* #224 - Fixes rule loading with Windows Command Prompt

Closes #224

* Put fix in the appropriate method
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants