Commit 99a080d4 authored by Volker Hilsheimer's avatar Volker Hilsheimer
Browse files

Don't overwrite machine name with disk name

parent 2d652b04
......@@ -218,13 +218,13 @@ Vagrant.configure("2") do |config|
# storage setup, using the experimental 'disks' vagrant feature. It is not implemented
# for most providers and anyway won't do anything unless VAGRANT_EXPERIMENTAL="disks"
# is set, so the _setup methods that come next will implement the feature where we can.
name="data0"
diskname="data0"
storages = machine["storage"] || []
storages = [storages] unless storages.is_a?(Array)
storages.each do |storage|
storage = { "size" => storage } unless storage.is_a?(Hash)
box.vm.disk :disk, name: storage['name'] || name, size: "#{storage['size']}GB"
name.next!
box.vm.disk :disk, name: storage['name'] || diskname, size: "#{storage['size']}GB"
diskname.next!
end
# call provider specific plugin extensions to map general minicoin configs to
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment