Merge pull request #1633 from NeilW/add_ssh_username_to_log_message

Add ssh username to ssh connection log message
This commit is contained in:
Mitchell Hashimoto 2013-04-19 09:06:47 -07:00
commit 959f454f67
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ module VagrantPlugins
:verbose => :debug
})
@logger.info("Attempting to connect to SSH: #{ssh_info[:host]}:#{ssh_info[:port]}")
@logger.info("Attempting to connect to SSH: #{ssh_info[:host]}:#{ssh_info[:port]} as #{ssh_info[:username] || 'current_user'}.")
Net::SSH.start(ssh_info[:host], ssh_info[:username], connect_opts)
ensure
# Make sure we output the connection log