Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sleeping with the fiSSHes? #583

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/vagrant/ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,16 @@ def execute(opts={})

# Connect to SSH and gather the session
session = retryable(:tries => env.config.ssh.max_tries, :on => exceptions) do
sleep 4 # this or issue #391, #455, etc.
connection = Net::SSH.start(env.config.ssh.host,
env.config.ssh.username,
opts.merge( :keys => [env.config.ssh.private_key_path],
:keys_only => true,
:user_known_hosts_file => [],
:paranoid => false,
:config => false))
SSH::Session.new(connection, env)
sleep 4 # this or issue #391, #455, etc.
SSH::Session.new(connection, env)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looks weird, missing two spaces maybe ? or mixing space/tabs ?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understandable, same situation here not complaining though :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can try this change and report back that would be great!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope I can squeeze it in my todo list as well, why not if I can :)

end

# Yield our session for executing
Expand Down