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

Rename OpVerifyDisks and LUVerifyDisks


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent a3d32770
......@@ -457,10 +457,10 @@ def VerifyDisks(opts, args):
"""
cl = GetClient()
op = opcodes.OpVerifyDisks()
op = opcodes.OpClusterVerifyDisks()
result = SubmitOpCode(op, opts=opts, cl=cl)
if not isinstance(result, (list, tuple)) or len(result) != 3:
raise errors.ProgrammerError("Unknown result type for OpVerifyDisks")
raise errors.ProgrammerError("Unknown result type for OpClusterVerifyDisks")
bad_nodes, instances, missing = result
......
......@@ -2381,7 +2381,7 @@ class LUClusterVerify(LogicalUnit):
return lu_result
class LUVerifyDisks(NoHooksLU):
class LUClusterVerifyDisks(NoHooksLU):
"""Verifies the cluster disks status.
"""
......
......@@ -416,7 +416,7 @@ class OpClusterVerify(OpCode):
]
class OpVerifyDisks(OpCode):
class OpClusterVerifyDisks(OpCode):
"""Verify the cluster disks.
Parameters: none
......
......@@ -580,7 +580,7 @@ class Watcher(object):
"""Run gnt-cluster verify-disks.
"""
op = opcodes.OpVerifyDisks()
op = opcodes.OpClusterVerifyDisks()
job_id = client.SubmitJob([op])
result = cli.PollJob(job_id, cl=client, feedback_fn=logging.debug)[0]
client.ArchiveJob(job_id)
......
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