Просмотр исходного кода

Merge pull request #6105 from gdm85/master

Do not consider iptables' output an error in case of xtables lock
Michael Crosby 11 лет назад
Родитель
Сommit
189c600b3b
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      pkg/iptables/iptables.go

+ 5 - 0
pkg/iptables/iptables.go

@@ -166,5 +166,10 @@ func Raw(args ...string) ([]byte, error) {
 		return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err)
 		return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err)
 	}
 	}
 
 
+	// ignore iptables' message about xtables lock
+	if strings.Contains(string(output), "waiting for it to exit") {
+		output = []byte("")
+	}
+
 	return output, err
 	return output, err
 }
 }