Revision 4d025f0b lib/client/gnt_instance.py

b/lib/client/gnt_instance.py
1404 1404
  else:
1405 1405
    offline = None
1406 1406

  
1407
  if opts.hotplug:
1408
    hotplug = True
1409
  else:
1410
    hotplug = False
1411

  
1407 1412
  op = opcodes.OpInstanceSetParams(instance_name=args[0],
1408 1413
                                   nics=nics,
1409 1414
                                   disks=disks,
1415
                                   hotplug=hotplug,
1410 1416
                                   disk_template=opts.disk_template,
1411 1417
                                   remote_node=opts.node,
1412 1418
                                   hvparams=opts.hvparams,
......
1518 1524
  FORCE_VARIANT_OPT,
1519 1525
  NO_INSTALL_OPT,
1520 1526
  IGNORE_IPOLICY_OPT,
1527
  HOTPLUG_OPT,
1521 1528
  ]
1522 1529

  
1523 1530
commands = {
......
1604 1611
    [BACKEND_OPT, DISK_OPT, FORCE_OPT, HVOPTS_OPT, NET_OPT, SUBMIT_OPT,
1605 1612
     DISK_TEMPLATE_OPT, SINGLE_NODE_OPT, OS_OPT, FORCE_VARIANT_OPT,
1606 1613
     OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT, OFFLINE_INST_OPT,
1607
     ONLINE_INST_OPT, IGNORE_IPOLICY_OPT, RUNTIME_MEM_OPT],
1614
     ONLINE_INST_OPT, IGNORE_IPOLICY_OPT, RUNTIME_MEM_OPT, HOTPLUG_OPT],
1608 1615
    "<instance>", "Alters the parameters of an instance"),
1609 1616
  "shutdown": (
1610 1617
    GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()],

Also available in: Unified diff