Skip to content

Commit f05f795

Browse files
committed
Fix exception for nodes with no checkins
1 parent c6338ab commit f05f795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_plugins/recent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def recent(nodes)
55
cutoff = Time.now - (30 * 24 * 60 * 60)
66

77
nodes.select do |node|
8-
time = node['automatic']['ohai_time']
8+
time = node['automatic']['ohai_time'] || 0
99
time > cutoff.to_f
1010
end
1111
end

0 commit comments

Comments
 (0)