diff options
author | Tim Smith <tsmith@chef.io> | 2018-10-26 14:56:20 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-10-29 10:10:47 -0700 |
commit | 59592e01ffe84d8370331798d51a94797fd6d641 (patch) | |
tree | 0248c09f879b8928a5b3f5fcd90a60be96f0ca83 /lib/chef/knife | |
parent | e8822955c5ece465615fa2e164989e248bba2dbd (diff) | |
download | chef-59592e01ffe84d8370331798d51a94797fd6d641.tar.gz |
Remove deprecated knife status --hide-healthy flaghide_healthy
We've been telling people this was going away in Chef 15
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/status.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/chef/knife/status.rb b/lib/chef/knife/status.rb index 18bf987aa3..471c47b9f9 100644 --- a/lib/chef/knife/status.rb +++ b/lib/chef/knife/status.rb @@ -41,11 +41,6 @@ class Chef long: "--sort-reverse", description: "Sort the status list by last run time descending" - option :hide_healthy, - short: "-H", - long: "--hide-healthy", - description: "Hide nodes that have run chef in the last hour. [DEPRECATED] Use --hide-by-mins MINS instead" - option :hide_by_mins, long: "--hide-by-mins MINS", description: "Hide nodes that have run chef in the last MINS minutes" @@ -71,14 +66,6 @@ class Chef append_to_query(@name_args[0]) if @name_args[0] append_to_query("chef_environment:#{config[:environment]}") if config[:environment] - if config[:hide_healthy] - ui.warn("-H / --hide-healthy is deprecated and will be removed in Chef 15. Use --hide-by-mins MINS instead") - time = Time.now.to_i - # AND NOT is not valid lucene syntax, so don't use append_to_query - @query << " " unless @query.empty? - @query << "NOT ohai_time:[#{(time - 60 * 60)} TO #{time}]" - end - if config[:hide_by_mins] hidemins = config[:hide_by_mins].to_i time = Time.now.to_i |