From 949f5e86dc6bd920a77667f7d59460d5540fad71 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Thu, 2 Dec 2010 22:48:48 +0100 Subject: [PATCH] cmdlib: Fix prototype for _QueryBase.DeclareLocks Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Adeodato Simo <dato@google.com> --- lib/cmdlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 24fb51bab..a303a1b8f 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -533,7 +533,7 @@ class _QueryBase: """ raise NotImplementedError() - def DeclareLocks(self, level): + def DeclareLocks(self, lu, level): """Declare locks for this query. See L{LogicalUnit.DeclareLocks}. @@ -3512,7 +3512,7 @@ class _NodeQuery(_QueryBase): # if we don't request only static fields, we need to lock the nodes lu.needed_locks[locking.LEVEL_NODE] = self.wanted - def DeclareLocks(self, _): + def DeclareLocks(self, lu, level): pass def _GetQueryData(self, lu): -- GitLab