From 1b32cbade228da91761355603419ff22f124a585 Mon Sep 17 00:00:00 2001 From: StefanScherer Date: Tue, 3 Jun 2014 06:57:14 +0200 Subject: [PATCH] fixed writing rdp file --- plugins/hosts/windows/cap/rdp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hosts/windows/cap/rdp.rb b/plugins/hosts/windows/cap/rdp.rb index 4ef34237d..9976834de 100644 --- a/plugins/hosts/windows/cap/rdp.rb +++ b/plugins/hosts/windows/cap/rdp.rb @@ -21,12 +21,12 @@ module VagrantPlugins "vagrant-rdp-#{Time.now.to_i}-#{rand(10000)}.rdp") config_path.open("w+") do |f| opts.each do |k, v| - config.puts("#{k}:#{v}") + f.puts("#{k}:#{v}") end end # Build up the args to mstsc - args = [config.path] + args = [config_path.to_s] if rdp_info[:extra_args] args = rdp_info[:extra_args] + args end