Fixing the check in gnt-cluster, or gnt-cluster verify-disks is broken.
---
 scripts/gnt-cluster |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster
index 55b46a1..4383cbe 100755
--- a/scripts/gnt-cluster
+++ b/scripts/gnt-cluster
@@ -236,7 +236,7 @@ def VerifyDisks(opts, args):
   """
   op = opcodes.OpVerifyDisks()
   result = SubmitOpCode(op)
-  if not isinstance(result, tuple) or len(result) != 4:
+  if not isinstance(result, list) or len(result) != 4:
     raise errors.ProgrammerError("Unknown result type for OpVerifyDisks")
 
   nodes, nlvm, instances, missing = result
-- 
1.5.6.5

Reply via email to