summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-06-29 09:41:49 -0700
committerTim Smith <tsmith@chef.io>2017-06-29 09:47:11 -0700
commit7dbc7934744036cf504bc76078e5713a1bc101a1 (patch)
treefa21a760ea6494c2fbc5bb761a31950e4d70b455
parent6b77bee27738f720ce25df194cd3e778ea3279d1 (diff)
downloadohai-deprecate_scope.tar.gz
Deprecate the IPScopes Plugindeprecate_scope
2 reasons: 1) It requires a gem we're not installing so no one is actually using this. It's just failing to load during every Ohai run 2) If they do install the gem what they end up if fairly duplicate information to what we already provide in a few of the networking plugins Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/plugins/ip_scopes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ohai/plugins/ip_scopes.rb b/lib/ohai/plugins/ip_scopes.rb
index 5ef5474e..6d2b635c 100644
--- a/lib/ohai/plugins/ip_scopes.rb
+++ b/lib/ohai/plugins/ip_scopes.rb
@@ -24,6 +24,8 @@ Ohai.plugin(:IpScopes) do
begin
require "ipaddr_extensions"
+ Ohai::Log.warn("The IpScopes Ohai plugin has been deprecated and will be removed from Ohai 14 (April 2018).")
+
network["interfaces"].keys.sort.each do |if_name|
next if network["interfaces"][if_name]["addresses"].nil?