From 1b386c692c78398c98071302d55a90ed1bcf8ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com> Date: Wed, 15 Dec 2010 11:13:40 +0100 Subject: [PATCH] Do the expanding of the node name in ExpandNames MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RenΓ© Nussbaumer <rn@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cmdlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 137ef443f..11463d44d 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -3267,15 +3267,15 @@ class LUOutOfBand(NoHooksLU): raise errors.OpPrereqError("OOB is not supported for node %s" % self.op.node_name) - self.op.node_name = node.name self.node = node def ExpandNames(self): """Gather locks we need. """ + node_name = _ExpandNodeName(self.cfg, self.op.node_name) self.needed_locks = { - locking.LEVEL_NODE: [self.op.node_name], + locking.LEVEL_NODE: [node_name], } def Exec(self, feedback_fn): -- GitLab