Commit 578888e5 authored by Aurel's avatar Aurel

if node is already in the required state, do nothing


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@552 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent bcc2d592
......@@ -92,6 +92,11 @@ class AdminEventHandler(BaseEventHandler):
if node is None:
p = protocol.protocolError('invalid uuid')
conn.notify(p)
if node.getState() == state:
# no change
p = protocol.answerNodeState(node.getUUID(), node.getState())
conn.answer(p, packet)
return
# send information to master node
master_conn = self.app.master_conn
ip, port = 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