Revision a72d0a79

b/lib/cli.py
73 73
  "NONLIVE_OPT",
74 74
  "NOSTART_OPT",
75 75
  "NWSYNC_OPT",
76
  "ON_PRIMARY_OPT",
76 77
  "OS_OPT",
77 78
  "OS_SIZE_OPT",
78 79
  "SELECT_OS_OPT",
......
642 643
                               metavar="NODE", default=None,
643 644
                               completion_suggest=OPT_COMPL_ONE_NODE)
644 645

  
646
ON_PRIMARY_OPT = cli_option("-p", "--on-primary", dest="on_primary",
647
                            default=False, action="store_true",
648
                            help="Replace the disk(s) on the primary"
649
                            " node (only for the drbd template)")
650

  
645 651

  
646 652
def _ParseArgs(argv, commands, aliases):
647 653
  """Parser for the command line arguments.
b/scripts/gnt-instance
1437 1437
  'replace-disks': (ReplaceDisks, ARGS_ONE_INSTANCE,
1438 1438
                    [DEBUG_OPT,
1439 1439
                     NEW_SECONDARY_OPT,
1440
                     cli_option("-p", "--on-primary", dest="on_primary",
1441
                                default=False, action="store_true",
1442
                                help=("Replace the disk(s) on the primary"
1443
                                      " node (only for the drbd template)")),
1440
                     ON_PRIMARY_OPT,
1444 1441
                     cli_option("-s", "--on-secondary", dest="on_secondary",
1445 1442
                                default=False, action="store_true",
1446 1443
                                help=("Replace the disk(s) on the secondary"

Also available in: Unified diff