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:
parent
4cab663189
commit
d33c7b4d7a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue