From b55ab5d5b4888658b48138782b7d3df047ea20b7 Mon Sep 17 00:00:00 2001 From: bdd Date: Thu, 7 Aug 2014 13:41:41 -0400 Subject: [PATCH] Update password.go Loop is equivalent. --- helper/ssh/password.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/ssh/password.go b/helper/ssh/password.go index e5e2a3595270..934bcd01f572 100644 --- a/helper/ssh/password.go +++ b/helper/ssh/password.go @@ -18,7 +18,7 @@ func PasswordKeyboardInteractive(password string) ssh.KeyboardInteractiveChallen // Just send the password back for all questions answers := make([]string, len(questions)) - for i, _ := range answers { + for i := range answers { answers[i] = string(password) }