Suggested-by: Reid Price <[email protected]>
---
 python/ovs/db/parser.py |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/python/ovs/db/parser.py b/python/ovs/db/parser.py
index 67b3bd5..173922b 100644
--- a/python/ovs/db/parser.py
+++ b/python/ovs/db/parser.py
@@ -53,15 +53,13 @@ class Parser(object):
         if missing:
             name = missing.pop()
             if len(missing) > 1:
-                self.__raise_error("Member '%s' and %d other members "
-                                   "are present but not allowed here"
-                                   % (name, len(missing)))
+                present = "and %d other members are" % len(missing)
             elif missing:
-                self.__raise_error("Member '%s' and 1 other member "
-                                   "are present but not allowed here" % name)
+                present = "and 1 other member are"
             else:
-                self.__raise_error("Member '%s' is present but not "
-                                   "allowed here" % name)
+                present = "is"
+            self.__raise_error("Member '%s' %s present but not allowed here" %
+                               (name, present))
     
 def float_to_int(x):
     # XXX still needed?
-- 
1.7.4.4

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to