Revision d565f83f

b/lib/build/rpc_definitions.py
34 34
SINGLE = "single-node"
35 35
MULTI = "multi-node"
36 36

  
37
OBJECT_TO_DICT = "%s.ToDict()"
38
OBJECT_LIST_TO_DICT = "map(lambda d: d.ToDict(), %s)"
39
INST_TO_DICT = "self._InstDict(%s)"
40

  
41
NODE_TO_DISK_DICT = \
42
  ("dict((name, %s) for name, disks in %%s.items())" %
43
   (OBJECT_LIST_TO_DICT % "disks"))
44

  
37 45
CALLS = {
38 46
  "RpcClientDefault": [
39 47
    ],

Also available in: Unified diff