bin/check-chef-node.rb in sensu-plugins-chef-3.0.0 vs bin/check-chef-node.rb in sensu-plugins-chef-3.0.1
- old
+ new
@@ -27,9 +27,14 @@
#
require 'sensu-plugin/check/cli'
require 'ridley'
+# supress the THOUSANDS of useless warnings
+require 'hashie'
+require 'hashie/logger'
+Hashie.logger = Logger.new(nil)
+
class ChefNodeChecker < Sensu::Plugin::Check::CLI
option :node_name,
description: 'Check if this node name exists',
short: '-n NODE-NAME',
long: '--node-name NODE-NAME'