ovs.db.idl: Fix call to ovs.db.parser.Parser constructor.
authorBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 18:06:53 +0000 (11:06 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Aug 2011 18:06:53 +0000 (11:06 -0700)
This bug was introduced by commit 4c0f62718f "ovs.db.idl: Improve error
reporting for bad <row-update>s."

Found by pychecker.
Bug #7006.

python/ovs/db/idl.py

index dc5f89e69bbcb66bb77fcaa3f615a0616bb676db..8f3c8107c2372501289b8923329620bdd05d13e2 100644 (file)
@@ -207,7 +207,7 @@ class Idl:
                                       'is not an object'
                                       % (table_name, uuid_string))
 
-                parser = ovs.db.parser.Parser(json, "row-update")
+                parser = ovs.db.parser.Parser(row_update, "row-update")
                 old = parser.get_optional("old", [dict])
                 new = parser.get_optional("new", [dict])
                 parser.finish()