Commit fc8a6b8f authored by Iustin Pop's avatar Iustin Pop
Browse files

Implement BuildHooksEnv for NoHooksLU

This just adds a stub function that raises an assertion error; this
accomplishes two things:

- silences many pylint warnings
- if we ever stumble upon this, a specific assertion error is
  (hopefully) clearer than just a not implemented error
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarOlivier Tharan <>
parent c70d2d9b
......@@ -335,6 +335,14 @@ class NoHooksLU(LogicalUnit): # pylint: disable-msg=W0223
HPATH = None
HTYPE = None
def BuildHooksEnv(self):
"""Empty BuildHooksEnv for NoHooksLu.
This just raises an error.
assert False, "BuildHooksEnv called for NoHooksLUs"
def _GetWantedNodes(lu, nodes):
"""Returns list of checked and expanded node names.
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