Commit da2d02e7 authored by Iustin Pop's avatar Iustin Pop
Browse files

Rename OpDiagnoseOS and LUDiagnoseOS


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent f13973c4
......@@ -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
......
......@@ -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:
......
......@@ -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)
......
......@@ -3295,7 +3295,7 @@ class LUOobCommand(NoHooksLU):
class LUDiagnoseOS(NoHooksLU):
class LUOsDiagnose(NoHooksLU):
"""Logical unit for OS diagnose/query.
"""
......
......@@ -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 = [
......
......@@ -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)
......
......@@ -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=[])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment