From c6d43e9e0e65071a48fdc87a5a53b52aa1420e34 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sat, 15 Jan 2011 12:55:42 +0100 Subject: [PATCH] Rename OpDestroyCluster and LUDestroyCluster MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- lib/client/gnt_cluster.py | 2 +- lib/cmdlib.py | 2 +- lib/opcodes.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index 6a6efeb46..3f45a5b46 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -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 diff --git a/lib/cmdlib.py b/lib/cmdlib.py index e00262fe0..1aac802eb 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -1111,7 +1111,7 @@ class LUPostInitCluster(LogicalUnit): return True -class LUDestroyCluster(LogicalUnit): +class LUClusterDestroy(LogicalUnit): """Logical unit for destroying the cluster. """ diff --git a/lib/opcodes.py b/lib/opcodes.py index 1ac573bb6..24c8bdd6f 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -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 -- GitLab