core: forgot to gate one change from last commit to Windows

This commit is contained in:
Mitchell Hashimoto 2014-01-16 22:33:15 -08:00
parent 77c309e91f
commit b8e6fe418f
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
require "log4r"
require "vagrant/util/platform"
require "vagrant/util/ssh"
require "vagrant/util/shell_quote"
@ -49,7 +50,12 @@ module Vagrant
# don't then we default to a TTY
if !opts[:extra_args].include?("-t") && !opts[:extra_args].include?("-T")
opts[:extra_args] << "-t"
opts[:extra_args] << "-t"
if Util::Platform.windows?
# Windows currently has a bug where STDIN won't be a TTY.
# This absolutely forces the allocation.
opts[:extra_args] << "-t"
end
end
opts[:extra_args] << command