Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4677 from mboersma/continue-builder-etcd-updates
Browse files Browse the repository at this point in the history
fix(builder): continue updating etcd after errors
  • Loading branch information
mboersma committed Nov 2, 2015
2 parents 055763b + e894108 commit 61c1026
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builder/etcd/etcd.go
Expand Up @@ -349,14 +349,13 @@ func UpdateHostPort(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Int
safely.GoDo(c, func() {
ticker := time.NewTicker(10 * time.Second)
for range ticker.C {
//log.Infof(c, "Setting SSHD host/port")
if _, err := os.FindProcess(sshd); err != nil {
log.Errf(c, "Lost SSHd process: %s", err)
break
} else {
if err := setHostPort(client, base, host, port, ttl); err != nil {
log.Errf(c, "Etcd error setting host/port: %s", err)
break
continue
}
}
}
Expand Down

0 comments on commit 61c1026

Please sign in to comment.