mirror of
https://github.com/openvswitch/ovs
synced 2025-09-04 08:15:25 +00:00
python: Fix attempt to use a bool as a function.
A bool (has_lock) was being accessed as a function call leading to a runtime exception. Signed-off-by: Sumit Garg <sumit@extremenetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -875,7 +875,7 @@ class Transaction(object):
|
|||||||
return self._status
|
return self._status
|
||||||
|
|
||||||
# If we need a lock but don't have it, give up quickly.
|
# If we need a lock but don't have it, give up quickly.
|
||||||
if self.idl.lock_name and not self.idl.has_lock():
|
if self.idl.lock_name and not self.idl.has_lock:
|
||||||
self._status = Transaction.NOT_LOCKED
|
self._status = Transaction.NOT_LOCKED
|
||||||
self.__disassemble()
|
self.__disassemble()
|
||||||
return self._status
|
return self._status
|
||||||
|
Reference in New Issue
Block a user