Commit 1b386c69 authored by René Nussbaumer's avatar René Nussbaumer

Do the expanding of the node name in ExpandNames

Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent a36f605d
......@@ -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):
......
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