From d68100ec344a5981ebe64656fa39604bc18e3759 Mon Sep 17 00:00:00 2001 From: Giuseppe Mazzotta Date: Thu, 29 May 2014 15:57:29 +0200 Subject: [PATCH] * do not consider iptables' output an error in case of xtables lock Docker-DCO-1.1-Signed-off-by: Giuseppe Mazzotta (github: gdm85) --- iptables/iptables.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iptables/iptables.go b/iptables/iptables.go index b44c452..e3f4d74 100644 --- a/iptables/iptables.go +++ b/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) } + // ignore iptables' message about xtables lock + if strings.Contains(string(output), "waiting for it to exit") { + output = []byte("") + } + return output, err }