diff options
author | Laurent <laurent+git@u-picardie.fr> | 2012-05-24 13:53:14 +0200 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-06-08 08:42:53 -0700 |
commit | bc26f30b1eddfe9de12cfd06d124326c6ce91798 (patch) | |
tree | 530267db3bcac6cc4df99d45c94c2c7242574087 | |
parent | 3717b5f7bba436327c2d76fd6a385279a9b439f4 (diff) | |
download | ohai-bc26f30b1eddfe9de12cfd06d124326c6ce91798.tar.gz |
severity changed for one log message
-rw-r--r-- | lib/ohai/plugins/network.rb | 2 | ||||
-rw-r--r-- | spec/ohai/plugins/network_spec.rb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/ohai/plugins/network.rb b/lib/ohai/plugins/network.rb index 7c7f91be..68771221 100644 --- a/lib/ohai/plugins/network.rb +++ b/lib/ohai/plugins/network.rb @@ -105,7 +105,7 @@ def find_ip(family = "inet") end else r = r.first - Ohai::Log.warn("[#{family}] no default interface, picking the first ipaddress") + Ohai::Log.info("[#{family}] no default interface, picking the first ipaddress") end return [ nil, nil ] if r.nil? or r.empty? diff --git a/spec/ohai/plugins/network_spec.rb b/spec/ohai/plugins/network_spec.rb index 749bc254..0ec9dc0f 100644 --- a/spec/ohai/plugins/network_spec.rb +++ b/spec/ohai/plugins/network_spec.rb @@ -455,8 +455,8 @@ describe Ohai::System, "Network Plugin" do it_does_not_fail it "picks {ip,mac,ip6}address from the first interface" do - Ohai::Log.should_receive(:warn).with(/^\[inet\] no default interface/).once - Ohai::Log.should_receive(:warn).with(/^\[inet6\] no default interface/).once + Ohai::Log.should_receive(:info).with(/^\[inet\] no default interface/).once + Ohai::Log.should_receive(:info).with(/^\[inet6\] no default interface/).once @ohai._require_plugin("network") @ohai["ipaddress"].should == "192.168.99.11" @ohai["macaddress"].should == "00:16:3E:2F:36:80" @@ -477,8 +477,8 @@ describe Ohai::System, "Network Plugin" do it_does_not_fail it "prefers global scope addressses to set {ip,mac,ip6}address" do - Ohai::Log.should_receive(:warn).with(/^\[inet\] no default interface/).once - Ohai::Log.should_receive(:warn).with(/^\[inet6\] no default interface/).once + Ohai::Log.should_receive(:info).with(/^\[inet\] no default interface/).once + Ohai::Log.should_receive(:info).with(/^\[inet6\] no default interface/).once @ohai._require_plugin("network") @ohai["ipaddress"].should == "192.168.99.11" @ohai["macaddress"].should == "00:16:3E:2F:36:80" |