Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
oker1 committed Sep 24, 2015
1 parent abf2a69 commit e684d01
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions builder/lxc/step_wait_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,30 +93,6 @@ func (s *StepWaitInit) waitForInit(state multistep.StateBag, cancel <-chan struc
log.Printf("Container finished init.")
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
Expand Down

0 comments on commit e684d01

Please sign in to comment.