Add password to rdp_info hash

Any specific reason the password was omitted from the rdp_info hash?

Without the password in the rdp_info hash I see no way of figuring out the password in the rdp_client capability.
This commit is contained in:
Fabian Ruff 2014-10-27 18:21:02 +01:00
parent 4cab663189
commit d33c7b4d7a
1 changed files with 9 additions and 1 deletions

View File

@ -69,7 +69,15 @@ module VagrantPlugins
end
rdp_info[:username] = username
end
if !rdp_info[:password]
username = ssh_info[:password]
if machine.config.vm.communicator == :winrm
username = machine.config.winrm.password
end
rdp_info[:password] = username
end
rdp_info[:host] ||= ssh_info[:host]
rdp_info[:port] ||= machine.config.rdp.port