Permalink
Browse files

fixed writing rdp file

  • Loading branch information...
StefanScherer committed Jun 3, 2014
1 parent af43655 commit 1b32cbade228da91761355603419ff22f124a585
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/hosts/windows/cap/rdp.rb
@@ -21,12 +21,12 @@ def self.rdp_client(env, rdp_info)
"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

0 comments on commit 1b32cba

Please sign in to comment.