Revision 080fbeea lib/config.py
b/lib/config.py | ||
---|---|---|
1082 | 1082 |
for member_name in |
1083 | 1083 |
self._UnlockedGetNodeGroup(ngfn(node_name)).members) |
1084 | 1084 |
|
1085 |
@locking.ssynchronized(_config_lock, shared=1) |
|
1086 |
def GetMultiNodeGroupInfo(self, group_uuids): |
|
1087 |
"""Get the configuration of multiple node groups. |
|
1088 |
|
|
1089 |
@param group_uuids: List of node group UUIDs |
|
1090 |
@rtype: list |
|
1091 |
@return: List of tuples of (group_uuid, group_info) |
|
1092 |
|
|
1093 |
""" |
|
1094 |
return [(uuid, self._UnlockedGetNodeGroup(uuid)) for uuid in group_uuids] |
|
1095 |
|
|
1085 | 1096 |
@locking.ssynchronized(_config_lock) |
1086 | 1097 |
def AddInstance(self, instance, ec_id): |
1087 | 1098 |
"""Add an instance to the config. |
Also available in: Unified diff