Commit 48ecbe51 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Avoid partition table log crash the application if node manager and

partition table contents are not consistent.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1268 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 88fd3dd4
......@@ -239,7 +239,7 @@ class PartitionTable(object):
line.append('X' * len(node_list))
else:
cell = []
cell_dict = dict([(node_dict[x.getUUID()], x) for x in row])
cell_dict = dict([(node_dict.get(x.getUUID(), None), x) for x in row])
for node in xrange(len(node_list)):
if node in cell_dict:
cell.append(cell_state_dict[cell_dict[node].getState()])
......
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