mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Do not mount folders with an empty guest path
This commit is contained in:
parent
d1a0d80cd7
commit
79e08cf2d9
@ -63,9 +63,11 @@ module VagrantPlugins
|
||||
# Only mount folders that have a guest path specified.
|
||||
mount_folders = {}
|
||||
folders.each do |id, opts|
|
||||
mount_folders[id] = opts.dup if opts[:guestpath]
|
||||
# merge common options if not given
|
||||
mount_folders[id].merge!(version: '9p2000.L') { |_k, ov, _nv| ov }
|
||||
if opts[:guestpath] && ! opts[:guestpath].empty?
|
||||
mount_folders[id] = opts.dup
|
||||
# merge common options if not given
|
||||
mount_folders[id].merge!(version: '9p2000.L') { |_k, ov, _nv| ov }
|
||||
end
|
||||
end
|
||||
# Mount the actual folder
|
||||
machine.guest.capability(
|
||||
|
Loading…
Reference in New Issue
Block a user