Revision 1c3231aa lib/rpc_defs.py

b/lib/rpc_defs.py
142 142
    return args
143 143

  
144 144

  
145
def _DrbdCallsPreProc(node, args):
146
  """Add the target node UUID as additional field for DRBD related calls."""
147
  return args + [node]
148

  
149

  
145 150
def _OsGetPostProc(result):
146 151
  """Post-processor for L{rpc.RpcRunner.call_os_get}.
147 152

  
......
394 399
  ("drbd_disconnect_net", MULTI, None, constants.RPC_TMO_NORMAL, [
395 400
    ("nodes_ip", None, None),
396 401
    ("disks", ED_OBJECT_DICT_LIST, None),
397
    ], None, None, "Disconnects the network of the given drbd devices"),
402
    ], _DrbdCallsPreProc, None,
403
   "Disconnects the network of the given drbd devices"),
398 404
  ("drbd_attach_net", MULTI, None, constants.RPC_TMO_NORMAL, [
399 405
    ("nodes_ip", None, None),
400 406
    ("disks", ED_DISKS_DICT_DP, None),
401 407
    ("instance_name", None, None),
402 408
    ("multimaster", None, None),
403
    ], None, None, "Connects the given DRBD devices"),
409
    ], _DrbdCallsPreProc, None, "Connects the given DRBD devices"),
404 410
  ("drbd_wait_sync", MULTI, None, constants.RPC_TMO_SLOW, [
405 411
    ("nodes_ip", None, None),
406 412
    ("disks", ED_DISKS_DICT_DP, None),
407
    ], None, None,
413
    ], _DrbdCallsPreProc, None,
408 414
   "Waits for the synchronization of drbd devices is complete"),
409 415
  ("blockdev_grow", SINGLE, None, constants.RPC_TMO_NORMAL, [
410 416
    ("cf_bdev", ED_SINGLE_DISK_DICT_DP, None),

Also available in: Unified diff