Commit ee14d800 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

config: Add unlocked function to get all node objects

This will be used for resolving node names.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 5c3ee7b2
...@@ -1488,9 +1488,16 @@ class ConfigWriter: ...@@ -1488,9 +1488,16 @@ class ConfigWriter:
would GetNodeInfo return for the node would GetNodeInfo return for the node
""" """
my_dict = dict([(node, self._UnlockedGetNodeInfo(node)) return self._UnlockedGetAllNodesInfo()
def _UnlockedGetAllNodesInfo(self):
"""Gets configuration of all nodes.
@note: See L{GetAllNodesInfo}
return dict([(node, self._UnlockedGetNodeInfo(node))
for node in self._UnlockedGetNodeList()]) for node in self._UnlockedGetNodeList()])
return my_dict
@locking.ssynchronized(_config_lock, shared=1) @locking.ssynchronized(_config_lock, shared=1)
def GetNodeGroupsFromNodes(self, nodes): def GetNodeGroupsFromNodes(self, nodes):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment