Commit 00e286c8 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add missing definition for node manager log() method.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1154 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9af23e72
......@@ -244,6 +244,7 @@ class NodeManager(object):
logging.info('create node %s %s %s %s' % log_args)
def log(self):
logging.debug('Node manager : %d nodes' % len(self.node_list))
for uuid, node in sorted(self.uuid_dict.items()):
args = (
dump(uuid),
......
......@@ -328,6 +328,13 @@ node_types = Enum({
'ADMIN_NODE_TYPE' : 4,
})
node_type_prefix_dict = {
MASTER_NODE_TYPE: 'M',
STORAGE_NODE_TYPE: 'S',
CLIENT_NODE_TYPE: 'C',
ADMIN_NODE_TYPE: 'A',
}
# Node states.
node_states = Enum({
'RUNNING_STATE': 0,
......
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