Fix retry logic for out of sequence errors

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2016-08-16 18:57:01 -07:00
parent 6e70a976ba
commit 157561e95c

View file

@ -359,7 +359,7 @@ func (d *SwarmDaemon) cmdRetryOutOfSequence(args ...string) (string, error) {
for i := 0; ; i++ {
out, err := d.Cmd(args...)
if err != nil {
if strings.Contains(err.Error(), "update out of sequence") {
if strings.Contains(out, "update out of sequence") {
if i < 10 {
continue
}