From da2d02e7786d2fc01dd8c6395d087e3580a0b371 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Sat, 15 Jan 2011 13:06:57 +0100 Subject: [PATCH] Rename OpDiagnoseOS and LUDiagnoseOS 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> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- doc/design-2.2.rst | 2 +- lib/client/gnt_instance.py | 2 +- lib/client/gnt_os.py | 6 +++--- lib/cmdlib.py | 2 +- lib/opcodes.py | 2 +- lib/rapi/rlib2.py | 2 +- tools/burnin | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/design-2.2.rst b/doc/design-2.2.rst index 87a268aa9..66f13b020 100644 --- a/doc/design-2.2.rst +++ b/doc/design-2.2.rst @@ -720,7 +720,7 @@ These lists will be modifiable via ``gnt-os modify`` (implemented via preseeded into a given state. For the hidden OSes, they are fully functional except that they are not -returned in the default OS list (as computed via ``OpDiagnoseOS``), +returned in the default OS list (as computed via ``OpOsDiagnose``), unless the hidden state is requested. For the blacklisted OSes, they are also not shown (unless the diff --git a/lib/client/gnt_instance.py b/lib/client/gnt_instance.py index 23a2e64cb..7f12d9252 100644 --- a/lib/client/gnt_instance.py +++ b/lib/client/gnt_instance.py @@ -458,7 +458,7 @@ def ReinstallInstance(opts, args): # second, if requested, ask for an OS if opts.select_os is True: - op = opcodes.OpDiagnoseOS(output_fields=["name", "variants"], names=[]) + op = opcodes.OpOsDiagnose(output_fields=["name", "variants"], names=[]) result = SubmitOpCode(op, opts=opts) if not result: diff --git a/lib/client/gnt_os.py b/lib/client/gnt_os.py index 3095a9e35..4241e34f9 100644 --- a/lib/client/gnt_os.py +++ b/lib/client/gnt_os.py @@ -42,7 +42,7 @@ def ListOS(opts, args): @return: the desired exit code """ - op = opcodes.OpDiagnoseOS(output_fields=["name", "variants"], names=[]) + op = opcodes.OpOsDiagnose(output_fields=["name", "variants"], names=[]) result = SubmitOpCode(op, opts=opts) if not result: @@ -77,7 +77,7 @@ def ShowOSInfo(opts, args): @return: the desired exit code """ - op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "variants", + op = opcodes.OpOsDiagnose(output_fields=["name", "valid", "variants", "parameters", "api_versions", "blacklisted", "hidden"], names=[]) @@ -146,7 +146,7 @@ def DiagnoseOS(opts, args): @return: the desired exit code """ - op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "variants", + op = opcodes.OpOsDiagnose(output_fields=["name", "valid", "variants", "node_status", "hidden", "blacklisted"], names=[]) result = SubmitOpCode(op, opts=opts) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 8298ad549..f8a02bdd5 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -3295,7 +3295,7 @@ class LUOobCommand(NoHooksLU): -class LUDiagnoseOS(NoHooksLU): +class LUOsDiagnose(NoHooksLU): """Logical unit for OS diagnose/query. """ diff --git a/lib/opcodes.py b/lib/opcodes.py index 027b26519..d0c0ef448 100644 --- a/lib/opcodes.py +++ b/lib/opcodes.py @@ -1079,7 +1079,7 @@ class OpGroupRename(OpCode): # OS opcodes -class OpDiagnoseOS(OpCode): +class OpOsDiagnose(OpCode): """Compute the list of guest operating systems.""" OP_ID = "OP_OS_DIAGNOSE" OP_PARAMS = [ diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py index db1c357c5..1f95bcb22 100644 --- a/lib/rapi/rlib2.py +++ b/lib/rapi/rlib2.py @@ -160,7 +160,7 @@ class R_2_os(baserlib.R_Generic): """ cl = baserlib.GetClient() - op = opcodes.OpDiagnoseOS(output_fields=["name", "variants"], names=[]) + op = opcodes.OpOsDiagnose(output_fields=["name", "variants"], names=[]) job_id = baserlib.SubmitJob([op], cl) # we use custom feedback function, instead of print we log the status result = cli.PollJob(job_id, cl, feedback_fn=baserlib.FeedbackFn) diff --git a/tools/burnin b/tools/burnin index c55a5699c..ba515751c 100755 --- a/tools/burnin +++ b/tools/burnin @@ -510,7 +510,7 @@ class Burner(object): Err(msg, exit_code=err_code) self.nodes = [data[0] for data in result if not (data[1] or data[2])] - op_diagnose = opcodes.OpDiagnoseOS(output_fields=["name", + op_diagnose = opcodes.OpOsDiagnose(output_fields=["name", "variants", "hidden"], names=[]) -- GitLab