Revision b2c750a4 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
797 | 797 |
return True |
798 | 798 |
|
799 | 799 |
|
800 |
class LUDestroyCluster(NoHooksLU):
|
|
800 |
class LUDestroyCluster(LogicalUnit):
|
|
801 | 801 |
"""Logical unit for destroying the cluster. |
802 | 802 |
|
803 | 803 |
""" |
804 |
HPATH = "cluster-destroy" |
|
805 |
HTYPE = constants.HTYPE_CLUSTER |
|
804 | 806 |
_OP_REQP = [] |
805 | 807 |
|
808 |
def BuildHooksEnv(self): |
|
809 |
"""Build hooks env. |
|
810 |
|
|
811 |
""" |
|
812 |
env = {"OP_TARGET": self.cfg.GetClusterName()} |
|
813 |
return env, [], [] |
|
814 |
|
|
806 | 815 |
def CheckPrereq(self): |
807 | 816 |
"""Check prerequisites. |
808 | 817 |
|
Also available in: Unified diff