Commit d1ad741e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUNodeQuery: Call implementation's DeclareLocks function

Just in case we ever add locks for querying nodes. Currently
_NodeQuery's DeclareLocks is a no-op function.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 702eff21
...@@ -4593,6 +4593,9 @@ class LUNodeQuery(NoHooksLU): ...@@ -4593,6 +4593,9 @@ class LUNodeQuery(NoHooksLU):
def ExpandNames(self): def ExpandNames(self):
self.nq.ExpandNames(self) self.nq.ExpandNames(self)
def DeclareLocks(self, level):
self.nq.DeclareLocks(self, level)
def Exec(self, feedback_fn): def Exec(self, feedback_fn):
return self.nq.OldStyleQuery(self) return self.nq.OldStyleQuery(self)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment