Revision d04aaa2f scripts/gnt-instance

b/scripts/gnt-instance
710 710
  for name in inames:
711 711
    op = opcodes.OpStartupInstance(instance_name=name,
712 712
                                   force=opts.force)
713
    # do not add these parameters to the opcode unless they're defined
714
    if opts.hvparams:
715
      op.hvparams = opts.hvparams
716
    if opts.beparams:
717
      op.beparams = opts.beparams
713 718
    jex.QueueJob(name, op)
714 719
  jex.WaitOrShow(not opts.submit_only)
715 720
  return 0
......
1472 1477
               m_node_opt, m_pri_node_opt, m_sec_node_opt,
1473 1478
               m_clust_opt, m_inst_opt,
1474 1479
               SUBMIT_OPT,
1480
               keyval_option("-H", "--hypervisor", type="keyval",
1481
                             default={}, dest="hvparams",
1482
                             help="Temporary hypervisor parameters"),
1483
               keyval_option("-B", "--backend", type="keyval",
1484
                             default={}, dest="beparams",
1485
                             help="Temporary backend parameters"),
1475 1486
               ],
1476
            "<instance>", "Starts an instance"),
1487
              "<instance>", "Starts an instance"),
1477 1488

  
1478 1489
  'reboot': (RebootInstance, ARGS_ANY,
1479 1490
              [DEBUG_OPT, m_force_multi,

Also available in: Unified diff