summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-06-29 18:38:18 +0100
committerGitHub <noreply@github.com>2017-06-29 18:38:18 +0100
commit62f43a2dc7feee0588b0ba6344d9473893990da5 (patch)
tree6ab24bffe4b894a4f2048a6c3db5e80e1a88a9b5
parentefde68e7c761e6b5e1f58089175ae3a95473e60e (diff)
parent7dbc7934744036cf504bc76078e5713a1bc101a1 (diff)
downloadohai-62f43a2dc7feee0588b0ba6344d9473893990da5.tar.gz
Merge pull request #1023 from chef/deprecate_scope
Deprecate the IPScopes Plugin
-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?