Merge pull request #368 from relenda/hotfix-9p-target-template

Fixed wrong target spec in 9p-fs template
This commit is contained in:
Dmitry Vasilets 2015-05-16 11:00:29 +02:00
commit 063ebfc08d
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,8 @@ module VagrantPlugins
begin begin
# loop through folders # loop through folders
folders.each do |id, folder_opts| folders.each do |id, folder_opts|
folder_opts.merge!({ :accessmode => "passthrough", folder_opts.merge!({ :target => id,
:accessmode => "passthrough",
:readonly => nil }) { |_k, ov, _nv| ov } :readonly => nil }) { |_k, ov, _nv| ov }
machine.ui.info "================\nMachine id: #{machine.id}\nShould be mounting folders\n #{id}, opts: #{folder_opts}" machine.ui.info "================\nMachine id: #{machine.id}\nShould be mounting folders\n #{id}, opts: #{folder_opts}"

View File

@ -1,8 +1,8 @@
<filesystem type='mount' accessmode='<%= accessmode %>'> <filesystem type='mount' accessmode='<%= accessmode %>'>
<driver type='path' wrpolicy='immediate'/> <driver type='path' wrpolicy='immediate'/>
<source dir='<%= hostpath %>'/> <source dir='<%= hostpath %>'/>
<target dir='<%= guestpath %>'/> <target dir='<%= target %>'/>
<% unless readonly.nil? %> <% unless readonly.nil? %>
<readonly /> <readonly />
<% end %> <% end %>
</filesystem> </filesystem>