From 632349710e2cc5de0e3874453db5c4a648491ae1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 27 Jul 2013 22:20:55 -0700 Subject: [PATCH] Convert hostpath to string on windows so gsub works --- CHANGELOG.md | 3 +++ plugins/kernel_v2/config/vm.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eb498a4d..d51f84c85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 892839f36..38c570cd1 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -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 ||= {}