fixed writing rdp file

This commit is contained in:
StefanScherer 2014-06-03 06:57:14 +02:00
parent af436553d3
commit 1b32cbade2
1 changed files with 2 additions and 2 deletions

View File

@ -21,12 +21,12 @@ module VagrantPlugins
"vagrant-rdp-#{Time.now.to_i}-#{rand(10000)}.rdp") "vagrant-rdp-#{Time.now.to_i}-#{rand(10000)}.rdp")
config_path.open("w+") do |f| config_path.open("w+") do |f|
opts.each do |k, v| opts.each do |k, v|
config.puts("#{k}:#{v}") f.puts("#{k}:#{v}")
end end
end end
# Build up the args to mstsc # Build up the args to mstsc
args = [config.path] args = [config_path.to_s]
if rdp_info[:extra_args] if rdp_info[:extra_args]
args = rdp_info[:extra_args] + args args = rdp_info[:extra_args] + args
end end