Commit c797d830 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix attribute name and constant access.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@768 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6e0075ea
......@@ -288,7 +288,7 @@ class Application(object):
def notifyDeadNode(self, conn):
""" Notify a storage failure to the primary master """
s_node = self.nm.getNodeByServer(conn.getAddress())
if s_node is None or s_node.getType() != STORAGE_NODE_TYPE:
if s_node is None or s_node.getNodeType() != protocol.STORAGE_NODE_TYPE:
return
s_uuid = s_node.getUUID()
ip_address, port = s_node.getServer()
......
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