summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cspell.json1
-rw-r--r--lib/chef/knife/status.rb4
2 files changed, 2 insertions, 3 deletions
diff --git a/cspell.json b/cspell.json
index 2c34043b30..a55b2bfc40 100644
--- a/cspell.json
+++ b/cspell.json
@@ -625,7 +625,6 @@
"HHOOK",
"HIBYTE",
"HICON",
- "hidemins",
"Hinderliter",
"HINSTANCE",
"hintname",
diff --git a/lib/chef/knife/status.rb b/lib/chef/knife/status.rb
index c52fb526a0..6cce1b9d32 100644
--- a/lib/chef/knife/status.rb
+++ b/lib/chef/knife/status.rb
@@ -68,11 +68,11 @@ class Chef
append_to_query("chef_environment:#{config[:environment]}") if config[:environment]
if config[:hide_by_mins]
- hidemins = config[:hide_by_mins].to_i
+ hide_by_mins = config[:hide_by_mins].to_i
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 - hidemins * 60)} TO #{time}]"
+ @query << "NOT ohai_time:[#{(time - hide_by_mins * 60)} TO #{time}]"
end
@query = @query.empty? ? "*:*" : @query