mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #835 from mrjana/overlay
Don't treat non-nil output as error in ChainExists
This commit is contained in:
commit
93f00879ed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue