From 2cee4077f2f96ef0366abf4687e4bb21ca11108d Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sat, 15 Jan 2011 13:06:17 +0100 Subject: [PATCH] Rename OpModifyNodeStorage and LUModifyNodeStorage 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: Michael Hanselmann <hansmi@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- lib/client/gnt_node.py | 2 +- lib/cmdlib.py | 2 +- lib/opcodes.py | 2 +- lib/rapi/rlib2.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/client/gnt_node.py b/lib/client/gnt_node.py index e2ede0abd..8910f3423 100644 --- a/lib/client/gnt_node.py +++ b/lib/client/gnt_node.py @@ -633,7 +633,7 @@ def ModifyStorage(opts, args): changes[constants.SF_ALLOCATABLE] = opts.allocatable if changes: - op = opcodes.OpModifyNodeStorage(node_name=node_name, + op = opcodes.OpNodeModifyStorage(node_name=node_name, storage_type=storage_type, name=volume_name, changes=changes) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 75fb71235..d5c4252c0 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -3887,7 +3887,7 @@ class LUQueryFields(NoHooksLU): return self.qcls.FieldsQuery(self.op.fields) -class LUModifyNodeStorage(NoHooksLU): +class LUNodeModifyStorage(NoHooksLU): """Logical unit for modifying a storage volume on a node. """ diff --git a/lib/opcodes.py b/lib/opcodes.py index 7a2356b19..32731dbd7 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -668,7 +668,7 @@ class OpQueryNodeStorage(OpCode): ] -class OpModifyNodeStorage(OpCode): +class OpNodeModifyStorage(OpCode): """Modifies the properies of a storage unit""" OP_ID = "OP_NODE_MODIFY_STORAGE" OP_PARAMS = [ diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py index 0e52d3076..a267c9aef 100644 --- a/lib/rapi/rlib2.py +++ b/lib/rapi/rlib2.py @@ -518,7 +518,7 @@ class R_2_nodes_name_storage_modify(baserlib.R_Generic): changes[constants.SF_ALLOCATABLE] = \ bool(self._checkIntVariable("allocatable", default=1)) - op = opcodes.OpModifyNodeStorage(node_name=node_name, + op = opcodes.OpNodeModifyStorage(node_name=node_name, storage_type=storage_type, name=name, changes=changes) -- GitLab