Force string conversion on paths

This commit is contained in:
Chris Roberts 2018-06-18 09:53:06 -07:00
parent 835c500892
commit 941dd77a90
1 changed files with 2 additions and 2 deletions

View File

@ -221,8 +221,8 @@ module VagrantPlugins
def execute_powershell(path, options, &block) def execute_powershell(path, options, &block)
lib_path = Pathname.new(File.expand_path("../scripts", __FILE__)) lib_path = Pathname.new(File.expand_path("../scripts", __FILE__))
mod_path = Vagrant::Util::Platform.wsl_to_windows_path(lib_path.join("utils")).gsub("/", "\\") mod_path = Vagrant::Util::Platform.wsl_to_windows_path(lib_path.join("utils")).to_s.gsub("/", "\\")
path = Vagrant::Util::Platform.wsl_to_windows_path(lib_path.join(path)).gsub("/", "\\") path = Vagrant::Util::Platform.wsl_to_windows_path(lib_path.join(path)).to_s.gsub("/", "\\")
options = options || {} options = options || {}
ps_options = [] ps_options = []
options.each do |key, value| options.each do |key, value|