Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
fix subtle bugs around vagrant_plugin autorequire behavior in vagrant…
Browse files Browse the repository at this point in the history
…_box
  • Loading branch information
wfarr committed Mar 21, 2013
1 parent f12e325 commit d230667
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/puppet/type/vagrant_box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@

autorequire :vagrant_plugin do
Array.new.tap do |a|
vagrant_provider = self[:name].partition('/').first

a << vagrant_provider if vagrant_provider != 'virtualbox'
case vprovider = self[:name].partition('/').last
when 'virtualbox'
# built in
when 'vmware_fusion'
a << 'vagrant-vmware-fusion'
else
a << vprovider unless vprovider.nil?
end
end
end
end

0 comments on commit d230667

Please sign in to comment.