Merge pull request #4726 from databus23/patch-3

Add password to rdp_info hash
This commit is contained in:
Seth Vargo 2015-05-30 12:18:29 -07:00
commit bf45aa6233
1 changed files with 9 additions and 1 deletions

View File

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