Commit b2c750a4 authored by Luca Bigliardi's avatar Luca Bigliardi
Browse files

LUDestroyCluster: hooks support

We're going to call hooks from its Exec method so LUDestroyCluster has to
support them.
Signed-off-by: default avatarLuca Bigliardi <>
Reviewed-by: default avatarMichael Hanselmann <>
parent f848ac00
......@@ -797,12 +797,21 @@ class LUPostInitCluster(LogicalUnit):
return True
class LUDestroyCluster(NoHooksLU):
class LUDestroyCluster(LogicalUnit):
"""Logical unit for destroying the cluster.
HPATH = "cluster-destroy"
_OP_REQP = []
def BuildHooksEnv(self):
"""Build hooks env.
env = {"OP_TARGET": self.cfg.GetClusterName()}
return env, [], []
def CheckPrereq(self):
"""Check prerequisites.
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