Revision 1d67656e scripts/gnt-instance

b/scripts/gnt-instance
270 270
    if not AskUser(usertext):
271 271
      return 1
272 272

  
273
  op = opcodes.OpRemoveInstance(instance_name=instance_name)
273
  op = opcodes.OpRemoveInstance(instance_name=instance_name,
274
                                ignore_failures=opts.ignore_failures)
274 275
  SubmitOpCode(op)
275 276
  return 0
276 277

  
......
689 690
           "", "Lists the instances and their status"),
690 691
  'reinstall': (ReinstallInstance, ARGS_ONE, [DEBUG_OPT, FORCE_OPT, os_opt],
691 692
                "[-f] <instance>", "Reinstall the instance"),
692
  'remove': (RemoveInstance, ARGS_ONE, [DEBUG_OPT, FORCE_OPT],
693
  'remove': (RemoveInstance, ARGS_ONE,
694
             [DEBUG_OPT, FORCE_OPT,
695
              make_option("--ignore-failures", dest="ignore_failures",
696
                          action="store_true", default=False,
697
                          help=("Remove the instance from the cluster even"
698
                                " if there are failures during the removal"
699
                                " process (shutdown, disk removal, etc.)")),
700
              ],
693 701
             "[-f] <instance>", "Shuts down the instance and removes it"),
694 702
  'remove-mirror': (RemoveMDDRBDComponent, ARGS_ONE,
695 703
                   [DEBUG_OPT, node_opt,

Also available in: Unified diff