[DRE-commits] [vagrant-libvirt] 66/163: don't monkey-patch #default_provider

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:57:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.

commit e693b017dd443135ae031c119cc3c998cad74187
Author: Adam Spiers <vagrant-libvirt at adamspiers.org>
Date:   Sat Oct 25 14:35:31 2014 +0100

    don't monkey-patch #default_provider
    
    This monkey-patching of Vagrant::Environment#default_provider breaks
    with Vagrant 1.7.0, since the method's signature changed.  In any case
    Vagrant should do the right thing without "help" from vagrant-libvirt.
---
 lib/vagrant-libvirt.rb | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/lib/vagrant-libvirt.rb b/lib/vagrant-libvirt.rb
index c7204d9..825e5fa 100644
--- a/lib/vagrant-libvirt.rb
+++ b/lib/vagrant-libvirt.rb
@@ -27,13 +27,3 @@ module VagrantPlugins
     end
   end
 end
-
-# set provider by bash env
-# export VAGRANT_DEFAULT_PROVIDER=libvirt
-Vagrant::Environment.class_eval do
-  def default_provider
-    (ENV['VAGRANT_DEFAULT_PROVIDER'] || :virtualbox).to_sym
-  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