瀏覽代碼

Fix retry logic for out of sequence errors

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 9 年之前
父節點
當前提交
157561e95c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      integration-cli/daemon_swarm.go

+ 1 - 1
integration-cli/daemon_swarm.go

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