From 2ae9d860584caa98b34bffac536461e3f5099429 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Thu, 23 Jun 2011 09:46:50 -0700
Subject: [PATCH] ovs-ctl: Fix incorrect error message.

The sense of the test was wrong.

Bug #6071.
---
 utilities/ovs-ctl.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 4d1ce1881..d316adf02 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -302,9 +302,9 @@ enable_protocol () {
                 ;;
         esac
     elif (iptables --version) >/dev/null 2>&1; then
-        action "iptables binary not installed, not adding a rule for $name"
-    else
         action "cannot list iptables rules, not adding a rule for $name"
+    else
+        action "iptables binary not installed, not adding a rule for $name"
     fi
 }
 
-- 
2.47.0