Revision b4ec07f8 scripts/gnt-instance

b/scripts/gnt-instance
609 609

  
610 610
  """
611 611
  instance_name = args[0]
612
  op = opcodes.OpActivateInstanceDisks(instance_name=instance_name)
612
  op = opcodes.OpActivateInstanceDisks(instance_name=instance_name,
613
                                       ignore_size=opts.ignore_size)
613 614
  disks_info = SubmitOrSend(op, opts)
614 615
  for host, iname, nname in disks_info:
615 616
    ToStdout("%s:%s:%s", host, iname, nname)
......
1482 1483
               SUBMIT_OPT,
1483 1484
               ],
1484 1485
            "<instance>", "Reboots an instance"),
1485
  'activate-disks': (ActivateDisks, ARGS_ONE, [DEBUG_OPT, SUBMIT_OPT],
1486
  'activate-disks': (ActivateDisks, ARGS_ONE,
1487
                     [DEBUG_OPT, SUBMIT_OPT,
1488
                      make_option("--ignore-size", dest="ignore_size",
1489
                                  default=False, action="store_true",
1490
                                  help="Ignore current recorded size"
1491
                                  " (useful for forcing activation when"
1492
                                  " the recorded size is wrong)"),
1493
                      ],
1486 1494
                     "<instance>",
1487 1495
                     "Activate an instance's disks"),
1488 1496
  'deactivate-disks': (DeactivateDisks, ARGS_ONE, [DEBUG_OPT, SUBMIT_OPT],

Also available in: Unified diff