Revision e54c4c5e scripts/gnt-cluster

b/scripts/gnt-cluster
187 187
    opts - class with options as members
188 188

  
189 189
  """
190
  op = opcodes.OpVerifyCluster()
190
  skip_checks=[]
191
  if opts.skip_nplusone_mem:
192
    skip_checks.append(constants.VERIFY_NPLUSONE_MEM)
193
  op = opcodes.OpVerifyCluster(skip_checks=skip_checks)
191 194
  result = SubmitOpCode(op)
192 195
  return result
193 196

  
......
368 371
  'rename': (RenameCluster, ARGS_ONE, [DEBUG_OPT, FORCE_OPT],
369 372
               "<new_name>",
370 373
               "Renames the cluster"),
371
  'verify': (VerifyCluster, ARGS_NONE, [DEBUG_OPT],
374
  'verify': (VerifyCluster, ARGS_NONE, [DEBUG_OPT,
375
             make_option("--no-nplus1-mem", dest="skip_nplusone_mem",
376
                         help="Skip N+1 memory redundancy tests",
377
                         action="store_true",
378
                         default=False,),
379
             ],
372 380
             "", "Does a check on the cluster configuration"),
373 381
  'verify-disks': (VerifyDisks, ARGS_NONE, [DEBUG_OPT],
374 382
                   "", "Does a check on the cluster disk status"),

Also available in: Unified diff