From 4025015c9dd1b086317e14895188e42c9f77ba9e Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Wed, 21 Oct 2015 16:27:19 +0300 Subject: [PATCH] Escape colon in synced folder id This is a actual for Windows guests, where colon is the part of any absolute path. Parallels Desktop replaces colons (:) by asterisks (*) on the guest side, so, it breaks the synced folder mapping for Vagrant. --- lib/vagrant-parallels/synced_folder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-parallels/synced_folder.rb b/lib/vagrant-parallels/synced_folder.rb index 3f615caf..938f0a97 100644 --- a/lib/vagrant-parallels/synced_folder.rb +++ b/lib/vagrant-parallels/synced_folder.rb @@ -105,7 +105,7 @@ def driver(machine) end def os_friendly_id(id) - id.gsub(/[\/]/,'_').sub(/^_/, '') + id.gsub(/[\/:]/,'_').sub(/^_/, '') end end end