cmdlib: Use helper for expanding nodes for OOB commands
authorMichael Hanselmann <hansmi@google.com>
Tue, 10 May 2011 12:15:24 +0000 (14:15 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 10 May 2011 14:34:59 +0000 (16:34 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/cmdlib.py

index 02954fb..3e603bd 100644 (file)
@@ -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