[DRE-commits] [vagrant-libvirt] 14/17: Fixing parameters of run_provisioner
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:56:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.15
in repository vagrant-libvirt.
commit 16b258916b7a1db9041b8be39428af5bdc10bffd
Author: Ben Keith <keitwb at gmail.com>
Date: Sat Feb 1 15:34:45 2014 -0500
Fixing parameters of run_provisioner
- Removed logging since that was moved one method up in the Vagrant code
---
lib/vagrant-libvirt/action/timed_provision.rb | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/vagrant-libvirt/action/timed_provision.rb b/lib/vagrant-libvirt/action/timed_provision.rb
index d4c83dd..34f56b3 100644
--- a/lib/vagrant-libvirt/action/timed_provision.rb
+++ b/lib/vagrant-libvirt/action/timed_provision.rb
@@ -6,17 +6,14 @@ module VagrantPlugins
# This is the same as the builtin provision except it times the
# provisioner runs.
class TimedProvision < Vagrant::Action::Builtin::Provision
- def run_provisioner(env, name, p)
- env[:ui].info(I18n.t("vagrant.actions.vm.provision.beginning",
- :provisioner => name))
-
+ def run_provisioner(env)
timer = Util::Timer.time do
super
end
env[:metrics] ||= {}
env[:metrics]["provisioner_times"] ||= []
- env[:metrics]["provisioner_times"] << [p.class.to_s, timer]
+ env[:metrics]["provisioner_times"] << [env[:provisioner].class.to_s, timer]
end
end
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git
More information about the Pkg-ruby-extras-commits
mailing list