Commit 7ee045a0 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cmdlib: Use helper for expanding nodes for OOB commands


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 1d789a97
......@@ -3487,8 +3487,7 @@ class LUOobCommand(NoHooksLU):
"""
if self.op.node_names:
self.op.node_names = [_ExpandNodeName(self.cfg, name)
for name in self.op.node_names]
self.op.node_names = _GetWantedNodes(self, self.op.node_names)
lock_names = self.op.node_names
else:
lock_names = locking.ALL_SET
......
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