[lxc] remove commented code

This commit is contained in:
Chris Lundquist 2016-05-19 06:00:42 +00:00 committed by Megan Marsh
parent e23920a6b9
commit 8b4e94d9c6
1 changed files with 0 additions and 24 deletions

View File

@ -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