ovs.db.idl: Fix error message format arguments.
authorBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 00:03:42 +0000 (17:03 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 18:07:23 +0000 (11:07 -0700)
There's no variable table_name.

Found by pychecker.

python/ovs/db/idl.py

index 8f3c8107c2372501289b8923329620bdd05d13e2..65f6838738307f24813957d961a9757fad3a156a 100644 (file)
@@ -249,7 +249,7 @@ class Idl:
                 changed = True
                 # XXX rate-limit
                 logging.warning("cannot modify missing row %s in table %s"
-                                % (uuid, table_name))
+                                % (uuid, table.name))
             if self.__modify_row(table, row, new):
                 changed = True
         return changed
@@ -269,7 +269,7 @@ class Idl:
             except error.Error, e:
                 # XXX rate-limit
                 logging.warning("error parsing column %s in table %s: %s"
-                                % (column_name, table_name, e))
+                                % (column_name, table.name, e))
                 continue
 
             if datum != getattr(row, column_name):