Commit 83120a01 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Add description, fix indentation.

Reviewed-by: iustinp
parent 588d1da3
...@@ -165,6 +165,12 @@ class NoHooksLU(LogicalUnit): ...@@ -165,6 +165,12 @@ class NoHooksLU(LogicalUnit):
def _GetWantedNodes(lu, nodes): def _GetWantedNodes(lu, nodes):
"""Returns list of checked and expanded nodes.
nodes: List of nodes (strings) or None for all
if nodes is not None and not isinstance(nodes, list): if nodes is not None and not isinstance(nodes, list):
raise errors.OpPrereqError, "Invalid argument type 'nodes'" raise errors.OpPrereqError, "Invalid argument type 'nodes'"
...@@ -183,6 +189,13 @@ def _GetWantedNodes(lu, nodes): ...@@ -183,6 +189,13 @@ def _GetWantedNodes(lu, nodes):
def _CheckOutputFields(static, dynamic, selected): def _CheckOutputFields(static, dynamic, selected):
"""Checks whether all selected fields are valid.
static: Static fields
dynamic: Dynamic fields
static_fields = frozenset(static) static_fields = frozenset(static)
dynamic_fields = frozenset(dynamic) dynamic_fields = frozenset(dynamic)
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