templates/Vagrantfile.erb in kitchen-vagrant-1.3.2 vs templates/Vagrantfile.erb in kitchen-vagrant-1.3.3

- old
+ new

@@ -89,10 +89,15 @@ c.vm.synced_folder <%= source.inspect %>, <%= destination.inspect %>, <%= options %> <% end %> 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 end @@ -100,11 +105,12 @@ case config[:provider] when "virtualbox", /^vmware_/, "parallels" if config[:linked_clone] == true || config[:linked_clone] == false %> p.linked_clone = <%= config[:linked_clone] %> <% end - when "hyperv" - if config[:linked_clone] == true || config[:linked_clone] == false %> + when "hyperv" %> + p.vmname = "kitchen-<%= File.basename(config[:kitchen_root]) %>-<%= instance.name %>" +<% if config[:linked_clone] == true || config[:linked_clone] == false %> p.differencing_disk = <%= config[:linked_clone] %> <% end end %> <% config[:customize].each do |key, value| %>