[cleanup] improve dialog message consistency
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 28 Jul 2009 18:44:19 +0200
changeset 2532 f7ca29d75183
parent 2531 531ea4e7013e
child 2533 07a744f64c2e
[cleanup] improve dialog message consistency
cwctl.py
--- a/cwctl.py	Tue Jul 28 18:36:32 2009 +0200
+++ b/cwctl.py	Tue Jul 28 18:44:19 2009 +0200
@@ -353,7 +353,7 @@
             if ex.errno != errno.ENOENT:
                 raise
         confignames = ', '.join([config.name for config in configs])
-        print 'instance %s (%s) deleted' % (appid, confignames)
+        print '-> instance %s (%s) deleted.' % (appid, confignames)
 
 
 # instance commands ########################################################
@@ -407,7 +407,7 @@
             print
             return False
         if not debug:
-            print 'instance %s started' % appid
+            print '-> instance %s started.' % appid
         return True
 
 
@@ -656,8 +656,7 @@
             print '-> no software migration needed for instance %s.' % appid
             return
         for cube, fromversion, toversion in toupgrade:
-            print '\n' + underline_title('%s migration %s -> %s' %
-                                         (cube, fromversion, toversion))
+            print '-> migration needed from %s to %s for %s' % (fromversion, toversion, cube)
         # only stop once we're sure we have something to do
         if not (cwcfg.mode == 'dev' or self.config.nostartstop):
             self.stop_instance(appid)