python: Fix the TypeError exception seen when idl.Idl parses lock reply
authorNuman Siddique <nusiddiq@redhat.com>
Fri, 8 Jan 2016 06:29:47 +0000 (11:59 +0530)
committerRussell Bryant <russell@ovn.org>
Fri, 8 Jan 2016 14:54:47 +0000 (09:54 -0500)
File "/usr/lib/python2.7/site-packages/ovs/db/idl.py", line 334,
in __parse_lock_notify
  self.__update_has_lock(self, new_has_lock)
TypeError: __update_has_lock() takes exactly 2 arguments (3 given)

Signed-off-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
python/ovs/db/idl.py

index c251601..8fec8ae 100644 (file)
@@ -332,7 +332,7 @@ class Idl(object):
             and type(params) in (list, tuple)
             and params
             and params[0] == self.lock_name):
-            self.__update_has_lock(self, new_has_lock)
+            self.__update_has_lock(new_has_lock)
             if not new_has_lock:
                 self.is_lock_contended = True