Rename OpDestroyCluster and LUDestroyCluster
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 11:55:42 +0000 (12:55 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:11 +0000 (12:47 +0100)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

lib/client/gnt_cluster.py
lib/cmdlib.py
lib/opcodes.py

index 6a6efeb..3f45a5b 100644 (file)
@@ -166,7 +166,7 @@ def DestroyCluster(opts, args):
              " destroy this cluster, supply the --yes-do-it option.")
     return 1
 
-  op = opcodes.OpDestroyCluster()
+  op = opcodes.OpClusterDestroy()
   master = SubmitOpCode(op, opts=opts)
   # if we reached this, the opcode didn't fail; we can proceed to
   # shutdown all the daemons
index e00262f..1aac802 100644 (file)
@@ -1111,7 +1111,7 @@ class LUPostInitCluster(LogicalUnit):
     return True
 
 
-class LUDestroyCluster(LogicalUnit):
+class LUClusterDestroy(LogicalUnit):
   """Logical unit for destroying the cluster.
 
   """
index 1ac573b..24c8bdd 100644 (file)
@@ -381,7 +381,7 @@ class OpPostInitCluster(OpCode):
   OP_ID = "OP_CLUSTER_POST_INIT"
 
 
-class OpDestroyCluster(OpCode):
+class OpClusterDestroy(OpCode):
   """Destroy the cluster.
 
   This opcode has no other parameters. All the state is irreversibly