From 18660e500a9b4c8761ecdbdda82ece11fc12132b Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 3 Apr 2017 13:25:23 -0700 Subject: The secondary plugin path not existing should be info not warn level Signed-off-by: Tim Smith --- lib/ohai/loader.rb | 2 +- spec/unit/loader_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ohai/loader.rb b/lib/ohai/loader.rb index 0468a6de..8ecd3192 100644 --- a/lib/ohai/loader.rb +++ b/lib/ohai/loader.rb @@ -40,7 +40,7 @@ module Ohai # Finds all the *.rb files under the configured paths in :plugin_path def self.find_all_in(plugin_dir) unless Dir.exist?(plugin_dir) - Ohai::Log.warn("The plugin path #{plugin_dir} does not exist. Skipping...") + Ohai::Log.info("The plugin path #{plugin_dir} does not exist. Skipping...") return [] end diff --git a/spec/unit/loader_spec.rb b/spec/unit/loader_spec.rb index 300407dc..59462c0c 100644 --- a/spec/unit/loader_spec.rb +++ b/spec/unit/loader_spec.rb @@ -222,7 +222,7 @@ EOF describe "when plugin directory does not exist" do it "logs an invalid plugin path warning" do - expect(Ohai::Log).to receive(:warn).with(/The plugin path.*does not exist/) + expect(Ohai::Log).to receive(:info).with(/The plugin path.*does not exist/) allow(Dir).to receive(:exist?).with("/bogus/dir").and_return(false) Ohai::Loader::PluginFile.find_all_in("/bogus/dir") end -- cgit v1.2.1