From 714e79d7928fe9c6837676aa567ff7c38882944c Mon Sep 17 00:00:00 2001 From: Matt Wrock Date: Sun, 27 Dec 2015 13:06:45 -0800 Subject: [PATCH] use SafeExec to capture history keys in powershell command --- plugins/hosts/windows/cap/ps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hosts/windows/cap/ps.rb b/plugins/hosts/windows/cap/ps.rb index 9960f689e..b02a31bd6 100644 --- a/plugins/hosts/windows/cap/ps.rb +++ b/plugins/hosts/windows/cap/ps.rb @@ -1,7 +1,7 @@ require "pathname" require "tmpdir" -require "vagrant/util/subprocess" +require "vagrant/util/safe_exec" module VagrantPlugins module HostWindows @@ -34,7 +34,7 @@ module VagrantPlugins end # Launch it - Vagrant::Util::Subprocess.execute("powershell", *args) + Vagrant::Util::SafeExec.exec("powershell", *args) end end end