[Neo-report] r1938 gregory - /trunk/neo/master/handlers/administration.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 16 17:06:59 CET 2010
Author: gregory
Date: Tue Mar 16 17:06:57 2010
New Revision: 1938
Log:
Clean a bit messages for admin node.
Modified:
trunk/neo/master/handlers/administration.py
Modified: trunk/neo/master/handlers/administration.py
==============================================================================
--- trunk/neo/master/handlers/administration.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/administration.py [iso-8859-1] Tue Mar 16 17:06:57 2010
@@ -57,7 +57,7 @@
self.app.changeClusterState(state)
# answer
- conn.answer(Errors.Ack('cluster state changed'))
+ conn.answer(Errors.Ack('Cluster state changed'))
if state == ClusterStates.STOPPING:
self.app.cluster_state = state
self.app.shutdown()
@@ -133,8 +133,7 @@
# nothing to do
if not uuid_set:
logging.warning('No nodes added')
- p = Errors.Ack('no nodes added')
- conn.answer(p)
+ conn.answer(Errors.Ack('No nodes added'))
return
uuids = ', '.join([dump(uuid) for uuid in uuid_set])
logging.info('Adding nodes %s' % uuids)
@@ -151,5 +150,4 @@
node.notify(Packets.StartOperation())
# broadcast the new partition table
app.broadcastPartitionChanges(cell_list)
- p = Errors.Ack('node added')
- conn.answer(p)
+ conn.answer(Errors.Ack('Nodes added: %s' % (uuids, )))
More information about the Neo-report
mailing list