Revision 94a02bb5 lib/config.py
b/lib/config.py | ||
---|---|---|
787 | 787 |
return self._UnlockedGetNodeList() |
788 | 788 |
|
789 | 789 |
@locking.ssynchronized(_config_lock, shared=1) |
790 |
def GetOnlineNodeList(self): |
|
791 |
"""Return the list of nodes which are online. |
|
792 |
|
|
793 |
""" |
|
794 |
all_nodes = [self._UnlockedGetNodeInfo(node) |
|
795 |
for node in self._UnlockedGetNodeList()] |
|
796 |
return [node.name for node in all_nodes if not node.offline] |
|
797 |
|
|
798 |
@locking.ssynchronized(_config_lock, shared=1) |
|
790 | 799 |
def GetAllNodesInfo(self): |
791 | 800 |
"""Get the configuration of all nodes. |
792 | 801 |
|
Also available in: Unified diff