Browse Source

Merge pull request #835 from mrjana/overlay

Don't treat non-nil output as error in ChainExists
aboch 9 years ago
parent
commit
93f00879ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/drivers/overlay/filter.go

+ 1 - 1
libnetwork/drivers/overlay/filter.go

@@ -23,7 +23,7 @@ func rawIPTables(args ...string) error {
 }
 
 func chainExists(cname string) bool {
-	if err := rawIPTables("-L", cname); err != nil {
+	if _, err := iptables.Raw("-L", cname); err != nil {
 		return false
 	}