From 17e6ef35a02a8933b05225cd7a9482c21ae2fc84 Mon Sep 17 00:00:00 2001 From: Sumit Garg Date: Thu, 25 Jun 2015 08:44:10 -0400 Subject: [PATCH 1/1] 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 Signed-off-by: Ben Pfaff --- python/ovs/db/idl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index 45a5a23b1..a6584a8e6 100644 --- a/python/ovs/db/idl.py +++ b/python/ovs/db/idl.py @@ -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 -- 2.20.1