summaryrefslogtreecommitdiff
path: root/lib/chef/knife/status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/status.rb')
-rw-r--r--lib/chef/knife/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/status.rb b/lib/chef/knife/status.rb
index 7bf9abbd1b..e7a7165faa 100644
--- a/lib/chef/knife/status.rb
+++ b/lib/chef/knife/status.rb
@@ -97,7 +97,7 @@ class Chef
end
output(all_nodes.sort { |n1, n2|
- if (config[:sort_reverse] || Chef::Config[:knife][:sort_status_reverse])
+ if config[:sort_reverse] || Chef::Config[:knife][:sort_status_reverse]
(n2["ohai_time"] or 0) <=> (n1["ohai_time"] or 0)
else
(n1["ohai_time"] or 0) <=> (n2["ohai_time"] or 0)