summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-01 13:07:08 -0700
committerGitHub <noreply@github.com>2018-11-01 13:07:08 -0700
commit5eae96f53442372ddebd16f28e4ee89feb2231be (patch)
tree42672cccee7946a15262987b08d04951f5bb521f
parent499322a418af7a73dcfeb8448655787b26ecc921 (diff)
parent59592e01ffe84d8370331798d51a94797fd6d641 (diff)
downloadchef-5eae96f53442372ddebd16f28e4ee89feb2231be.tar.gz
Merge pull request #7791 from chef/hide_healthy
Remove deprecated knife status --hide-healthy flag
-rw-r--r--lib/chef/knife/status.rb13
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