From d4f4b3e763cf53d4718521d22c3651cbb3f349a1 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Thu, 11 Sep 2008 09:43:25 +0000
Subject: [PATCH] Add GanetiLockManager.is_owned function

This is a public version of the private function we already had.
We don't just change the previous version because it had lots of users
in the library itself and in the testing code.

Reviewed-by: imsnah
---
 lib/locking.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/locking.py b/lib/locking.py
index a35767f03..f359678fa 100644
--- a/lib/locking.py
+++ b/lib/locking.py
@@ -745,6 +745,8 @@ class GanetiLockManager:
     """
     return self.__keyring[level]._is_owned()
 
+  is_owned = _is_owned
+
   def _list_owned(self, level):
     """Get the set of owned locks at the given level
 
-- 
GitLab