Commit 61dabca4 authored by Iustin Pop's avatar Iustin Pop
Browse files

Simplify a bit _GetWantedNodes



This should have been done in the _ExpandNodeName patch.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 083a91c9
......@@ -439,11 +439,7 @@ def _GetWantedNodes(lu, nodes):
raise errors.ProgrammerError("_GetWantedNodes should only be called with a"
" non-empty list of nodes whose name is to be expanded.")
wanted = []
for name in nodes:
node = _ExpandNodeName(lu.cfg, name)
wanted.append(node)
wanted = [_ExpandNodeName(lu.cfg, name) for name in nodes]
return utils.NiceSort(wanted)
......
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