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

run_time_limit config flag appears to be unused #447

Open
phiggins opened this issue Nov 19, 2020 · 0 comments
Open

run_time_limit config flag appears to be unused #447

phiggins opened this issue Nov 19, 2020 · 0 comments

Comments

@phiggins
Copy link

There is a config flag run_time_limit defined in the attributes file: https://github.com/chef-cookbooks/audit/blob/master/attributes/default.rb#L95

The value is referenced here, and then passed to Reporter::ChefAutomate: https://github.com/chef-cookbooks/audit/blob/master/files/default/handler/audit_report.rb#L261

Reporter::ChefAutomate sets an instance variable with that passed in value, but then never references it: https://github.com/chef-cookbooks/audit/blob/master/libraries/reporters/automate.rb#L27

It appears that should be the final argument passed to strip_profiles_meta, but that is instead hardcoded to 1: https://github.com/chef-cookbooks/audit/blob/master/libraries/reporters/automate.rb#L69
https://github.com/chef-cookbooks/audit/blob/master/libraries/helper.rb#L162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant