Revision 0b2de758 lib/config.py
b/lib/config.py | ||
---|---|---|
469 | 469 |
""" |
470 | 470 |
return self._UnlockedGetInstanceInfo(instance_name) |
471 | 471 |
|
472 |
@locking.ssynchronized(_config_lock, shared=1) |
|
473 |
def GetAllInstancesInfo(self): |
|
474 |
"""Get the configuration of all instances. |
|
475 |
|
|
476 |
@rtype: dict |
|
477 |
@returns: dict of (instance, instance_info), where instance_info is what |
|
478 |
would GetInstanceInfo return for the node |
|
479 |
|
|
480 |
""" |
|
481 |
my_dict = dict([(node, self._UnlockedGetInstanceInfo(node)) |
|
482 |
for node in self._UnlockedGetInstanceList()]) |
|
483 |
return my_dict |
|
484 |
|
|
472 | 485 |
@locking.ssynchronized(_config_lock) |
473 | 486 |
def AddNode(self, node): |
474 | 487 |
"""Add a node to the configuration. |
Also available in: Unified diff