Revision a2aadb34

b/lib/opcodes.py
1403 1403
  """Change the parameters of an instance.
1404 1404

  
1405 1405
  """
1406
  _TestNicModifications = _TestInstSetParamsModList(_TestNicDef)
1407
  _TestDiskModifications = _TestInstSetParamsModList(_TDiskParams)
1406
  TestNicModifications = _TestInstSetParamsModList(_TestNicDef)
1407
  TestDiskModifications = _TestInstSetParamsModList(_TDiskParams)
1408 1408

  
1409 1409
  OP_DSC_FIELD = "instance_name"
1410 1410
  OP_PARAMS = [
......
1412 1412
    _PForce,
1413 1413
    _PForceVariant,
1414 1414
    _PIgnoreIpolicy,
1415
    ("nics", ht.EmptyList, _TestNicModifications,
1415
    ("nics", ht.EmptyList, TestNicModifications,
1416 1416
     "List of NIC changes. Each item is of the form ``(op, index, settings)``."
1417 1417
     " ``op`` is one of ``%s``, ``%s`` or ``%s``. ``index`` can be either -1 to"
1418 1418
     " refer to the last position, or a zero-based index number. A deprecated"
......
1422 1422
     " of the NIC with that index." %
1423 1423
     (constants.DDM_ADD, constants.DDM_MODIFY, constants.DDM_REMOVE,
1424 1424
      constants.DDM_ADD, constants.DDM_REMOVE)),
1425
    ("disks", ht.EmptyList, _TestDiskModifications,
1425
    ("disks", ht.EmptyList, TestDiskModifications,
1426 1426
     "List of disk changes. See ``nics``."),
1427 1427
    ("beparams", ht.EmptyDict, ht.TDict, "Per-instance backend parameters"),
1428 1428
    ("runtime_mem", None, ht.TMaybeStrictPositiveInt, "New runtime memory"),

Also available in: Unified diff