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

Unexpected Warnings from FilterTable::ExceptionCatcher #5369

Closed
dwmarshall opened this issue Dec 28, 2020 · 0 comments · Fixed by #5441
Closed

Unexpected Warnings from FilterTable::ExceptionCatcher #5369

dwmarshall opened this issue Dec 28, 2020 · 0 comments · Fixed by #5441
Assignees

Comments

@dwmarshall
Copy link
Contributor

Running inspec on a profile produces numerous warnings. They seem not to affect the operation, however.

Describe the problem

I haven't been able to narrow this down to a particularly small example, but I wanted to create the issue in the hope that someone with greater wisdom will recognize the problem before I do much more work on it.

This output is from a Mac running a centos/7 Vagrant instance with

Chef Workstation version: 20.12.205
Chef Infra Client version: 16.8.14
Chef InSpec version: 4.24.8
Chef CLI version: 3.0.33
Chef Habitat version: 1.6.181
Test Kitchen version: 2.8.0
Cookstyle version: 7.3.11

When I run inspec exec https://github.com/dev-sec/cis-dil-benchmark.git --backend ssh --host default --user vagrant -p 2222 --key-files ~/.vagrant/machines/default/virtualbox/private_key 2>&1 I get lots of output warnings.

Here are the first few lines, and the full output I got is attached.

/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support/differ.rb:133: warning: FilterTable::ExceptionCatcher#respond_to?(:to_ary) uses the deprecated method signature, which takes one parameter
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/inspec-core-4.24.8/lib/inspec/utils/filter.rb:39: warning: respond_to? is defined here
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support/differ.rb:133: warning: FilterTable::ExceptionCatcher#respond_to?(:to_ary) uses the deprecated method signature, which takes one parameter
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/inspec-core-4.24.8/lib/inspec/utils/filter.rb:39: warning: respond_to? is defined here
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support/differ.rb:133: warning: FilterTable::ExceptionCatcher#respond_to?(:to_ary) uses the deprecated method signature, which takes one parameter
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/inspec-core-4.24.8/lib/inspec/utils/filter.rb:39: warning: respond_to? is defined here
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support/differ.rb:133: warning: FilterTable::ExceptionCatcher#respond_to?(:to_ary) uses the deprecated method signature, which takes one parameter
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/inspec-core-4.24.8/lib/inspec/utils/filter.rb:39: warning: respond_to? is defined here
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/rspec-support-3.9.4/lib/rspec/support/differ.rb:133: warning: FilterTable::ExceptionCatcher#respond_to?(:to_ary) uses the deprecated method signature, which takes one parameter
/opt/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/inspec-core-4.24.8/lib/inspec/utils/filter.rb:39: warning: respond_to? is defined here

inspec.txt

Possible Solution

@clintoncwolfe clintoncwolfe changed the title Unexpected Warnings from "inspec exec --backend ssh" Unexpected Warnings from FilterTable::ExceptionCatcher Mar 16, 2021
Vasu1105 added a commit that referenced this issue Mar 24, 2021
…ct exception message

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Vasu1105 added a commit that referenced this issue Mar 25, 2021
…ct exception message

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants