Revision c8a96ae7 lib/client/gnt_instance.py

b/lib/client/gnt_instance.py
638 638
  else:
639 639
    opts.disks = []
640 640

  
641
  if opts.node:
642
    pnode, snode = SplitNodeOption(opts.node)
643
    nodes = [pnode]
644
    if snode is not None:
645
      nodes.append(snode)
646
  else:
647
    nodes = []
648

  
641 649
  op = opcodes.OpInstanceRecreateDisks(instance_name=instance_name,
642
                                       disks=opts.disks)
650
                                       disks=opts.disks,
651
                                       nodes=nodes)
643 652
  SubmitOrSend(op, opts)
644 653
  return 0
645 654

  
......
1472 1481
    "[-f] <instance>", "Deactivate an instance's disks"),
1473 1482
  'recreate-disks': (
1474 1483
    RecreateDisks, ARGS_ONE_INSTANCE,
1475
    [SUBMIT_OPT, DISKIDX_OPT, DRY_RUN_OPT, PRIORITY_OPT],
1484
    [SUBMIT_OPT, DISKIDX_OPT, NODE_PLACEMENT_OPT, DRY_RUN_OPT, PRIORITY_OPT],
1476 1485
    "<instance>", "Recreate an instance's disks"),
1477 1486
  'grow-disk': (
1478 1487
    GrowDisk,

Also available in: Unified diff