python: Fix attempt to use a bool as a function.
authorSumit Garg <sumit@extremenetworks.com>
Thu, 25 Jun 2015 12:44:10 +0000 (08:44 -0400)
committerBen Pfaff <blp@nicira.com>
Thu, 25 Jun 2015 15:54:29 +0000 (08:54 -0700)
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>
python/ovs/db/idl.py

index 45a5a23..a6584a8 100644 (file)
@@ -875,7 +875,7 @@ class Transaction(object):
             return self._status
 
         # 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.__disassemble()
             return self._status