Skip to content

Commit

Permalink
python: Fix the TypeError exception seen when idl.Idl parses lock reply
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
numansiddique authored and russellb committed Jan 8, 2016
1 parent cebfec6 commit e9ad921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ovs/db/idl.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def __parse_lock_notify(self, params, new_has_lock):
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

Expand Down

0 comments on commit e9ad921

Please sign in to comment.