Commit 829f9b4c authored by Julien Muchembled's avatar Julien Muchembled

master: make setNodeState return appropriate message when state is unchanged

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2720 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 27c0b505
...@@ -80,7 +80,7 @@ class AdministrationHandler(MasterHandler): ...@@ -80,7 +80,7 @@ class AdministrationHandler(MasterHandler):
if node.getState() == state: if node.getState() == state:
# no change, just notify admin node # no change, just notify admin node
p = Errors.Ack('node state changed') p = Errors.Ack('node already in %s state' % state)
conn.answer(p) conn.answer(p)
return return
......
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