summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-09-01 18:28:28 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-09-01 18:28:28 -0700
commitca0726ef3c7c89533d5bd4146fcb3f20e2a50b80 (patch)
treee351528d00e05cbf1009c58e3fdac845112c31bd
parentb63f742a826be3b97e9eea34f725fbdbdfc87aa8 (diff)
downloadchef-ca0726ef3c7c89533d5bd4146fcb3f20e2a50b80.tar.gz
Missed a variable while moving code around.
-rw-r--r--lib/chef/knife/ssh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb
index a34e790c30..5ccef3000d 100644
--- a/lib/chef/knife/ssh.rb
+++ b/lib/chef/knife/ssh.rb
@@ -141,7 +141,7 @@ class Chef
prompt = "Enter the password for #{user}@#{gw_host}: "
gw_opts[:password] = prompt_for_password(prompt)
# Try again with a password.
- session.via(gw_host, user, gw_opts)
+ session.via(gw_host, gw_opts[:user], gw_opts)
end
end
end