templates/Vagrantfile.erb in kitchen-vagrant-1.3.6 vs templates/Vagrantfile.erb in kitchen-vagrant-1.4.0

- old
+ new

@@ -92,11 +92,11 @@ c.vm.provider :<%= config[:provider] %> do |p| <% case config[:provider] when "virtualbox" %> p.name = "kitchen-<%= File.basename(config[:kitchen_root]) %>-<%= instance.name %>" <% end %> - + <% case config[:provider] when "virtualbox", /^vmware_/ if config[:gui] == true || config[:gui] == false %> p.gui = <%= config[:gui] %> <% end @@ -112,10 +112,15 @@ <% if config[:linked_clone] == true || config[:linked_clone] == false %> p.linked_clone = <%= config[:linked_clone] %> <% end end %> +<% if config[:provider] == "virtualbox" && + !config[:customize].has_key?(:audio) %> + p.customize ["modifyvm", :id, "--audio", "none"] +<% end %> + <% config[:customize].each do |key, value| %> <% case config[:provider] when "libvirt" %> <% if key == :storage %> <% if value.is_a? String %> @@ -174,10 +179,10 @@ <% value = [value] unless value.instance_of?(Array) %> <% value.each do |item| %> <% options = [] %> <% item.each do |storage_option_key, storage_option_value| options << "\"--#{storage_option_key}\"" - if storage_option_value.instance_of? Fixnum + if storage_option_value.kind_of? Integer options << storage_option_value else options << "\"#{storage_option_value}\"" end end %>