Skip to content

Commit

Permalink
Upgrade V1 shared folders to V2
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jan 23, 2013
1 parent 4059a4b commit 29ca6bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Share the root folder. This can then be overridden by
# other Vagrantfiles, if they wish.
config.vm.share_folder("v-root", "/vagrant", ".")
config.vm.synced_folder(".", "/vagrant", :id => "vagrant-root")

config.nfs.map_uid = :auto
config.nfs.map_gid = :auto
Expand Down
9 changes: 5 additions & 4 deletions plugins/kernel_v1/config/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@ def upgrade(new)

# Shared folders
self.shared_folders.each do |name, sf|
options = sf.dup
guestpath = options.delete(:guestpath)
hostpath = options.delete(:hostpath)
options = sf.dup
options[:id] = name
guestpath = options.delete(:guestpath)
hostpath = options.delete(:hostpath)

new.vm.share_folder(name, guestpath, hostpath, options)
new.vm.synced_folder(hostpath, guestpath, options)
end

# Defined sub-VMs
Expand Down

0 comments on commit 29ca6bc

Please sign in to comment.