From 8b4e94d9c633352c7abcb7d6e830b2b32c83fd17 Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Thu, 19 May 2016 06:00:42 +0000 Subject: [PATCH] [lxc] remove commented code --- builder/lxc/step_wait_init.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/builder/lxc/step_wait_init.go b/builder/lxc/step_wait_init.go index 646964272..c83910bc4 100644 --- a/builder/lxc/step_wait_init.go +++ b/builder/lxc/step_wait_init.go @@ -98,30 +98,6 @@ func (s *StepWaitInit) waitForInit(state multistep.StateBag, cancel <-chan struc log.Printf("Expected Runlevel %s, Got Runlevel %s, continuing", targetRunlevel, currentRunlevel) break } - - /*log.Println("Attempting SSH connection...") - comm, err = ssh.New(config) - if err != nil { - log.Printf("SSH handshake err: %s", err) - - // Only count this as an attempt if we were able to attempt - // to authenticate. Note this is very brittle since it depends - // on the string of the error... but I don't see any other way. - if strings.Contains(err.Error(), "authenticate") { - log.Printf("Detected authentication error. Increasing handshake attempts.") - handshakeAttempts += 1 - } - - if handshakeAttempts < 10 { - // Try to connect via SSH a handful of times - continue - } - - return nil, err - } - - break - */ } return nil