Fix retry logic for out of sequence errors
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
6e70a976ba
commit
157561e95c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue