diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-12-28 15:46:55 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-12-30 11:43:07 -0800 |
commit | 876b6bbdbcaae6cf2e51998709abb03acb8de6c2 (patch) | |
tree | 548f6c212c3f85a02e598326dcd903be71a80400 | |
parent | c35cc213adc05ab2b3e7465dcdb33811fd2c17e7 (diff) | |
download | chef-876b6bbdbcaae6cf2e51998709abb03acb8de6c2.tar.gz |
Rename a variable to get rid of a spelling exception.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r-- | cspell.json | 1 | ||||
-rw-r--r-- | lib/chef/knife/status.rb | 4 |
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 |