You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
clintoncwolfe
changed the title
Unexpected Warnings from "inspec exec --backend ssh"
Unexpected Warnings from FilterTable::ExceptionCatcher
Mar 16, 2021
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
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.
inspec.txt
Possible Solution
The text was updated successfully, but these errors were encountered: