Convert hostpath to string on windows so gsub works

This commit is contained in:
Mitchell Hashimoto 2013-07-27 22:20:55 -07:00
parent 5be16cc194
commit 632349710e
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
## 1.2.7 (unreleased)
BUG FIXES:
- On Windows, properly convert synced folder host path to a string
so that separator replacement works properly.
## 1.2.6 (July 26, 2013)

View File

@ -128,7 +128,7 @@ module VagrantPlugins
if Vagrant::Util::Platform.windows?
# On Windows, Ruby just uses normal '/' for path seps, so
# just replace normal Windows style seps with Unix ones.
hostpath.gsub!("\\", "/")
hostpath = hostpath.to_s.gsub!("\\", "/")
end
options ||= {}