From afdc4de48edf61a878054d607c4c01021fb12d13 Mon Sep 17 00:00:00 2001 From: Peter Drake Date: Wed, 10 Dec 2014 10:06:01 -0500 Subject: [PATCH] Make the line regex puppet 3.0 compatible. --- lib/puppet-profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet-profiler.rb b/lib/puppet-profiler.rb index b3698e9..6d45114 100644 --- a/lib/puppet-profiler.rb +++ b/lib/puppet-profiler.rb @@ -5,7 +5,7 @@ def self.run(num_res, cmd) times = [] output.each { |line| - if line =~ /info: .*([A-Z][^\[]+)\[(.+?)\]: Evaluated in ([\d\.]+) seconds$/ + if line =~ /[I|i]nfo: .*([A-Z][^\[]+)\[(.+?)\]: Evaluated in ([\d\.]+) seconds$/ type = $1 title = $2 time = $3.to_f