summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/doc.rb
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2013-11-06 07:21:13 -0800
committerBryan McLellan <btm@opscode.com>2013-11-06 09:13:47 -0800
commit0563324d8e2031a2eae66100dedd805b7845881e (patch)
tree804497d50545d00c2693ae18a2d05d89976deba6 /lib/chef/formatters/doc.rb
parent19511dbd2f3054752e3013c0853dc5cc9951033a (diff)
downloadchef-0563324d8e2031a2eae66100dedd805b7845881e.tar.gz
CHEF-4379: initialize @end_time to @start_time
Prevents a TypeError when working with elapsed_time if something unexpected happens.
Diffstat (limited to 'lib/chef/formatters/doc.rb')
-rw-r--r--lib/chef/formatters/doc.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/formatters/doc.rb b/lib/chef/formatters/doc.rb
index ae1e6e3639..d8d8f43691 100644
--- a/lib/chef/formatters/doc.rb
+++ b/lib/chef/formatters/doc.rb
@@ -17,6 +17,7 @@ class Chef
@updated_resources = 0
@start_time = Time.now
+ @end_time = @start_time
end
def elapsed_time