Skip to content

Commit

Permalink
python: Fix attempt to use a bool as a function.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sumit Garg authored and blp committed Jun 25, 2015
1 parent 3e2e758 commit 9614403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ovs/db/idl.py
Expand Up @@ -875,7 +875,7 @@ def commit(self):
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
Expand Down

0 comments on commit 9614403

Please sign in to comment.