cwctl.py
branch3.5
changeset 3198 d2f48d30e73e
parent 3184 613064b49331
parent 3190 75cf006babe4
child 3199 fc63b80ec979
child 3486 ea6bf6f9ba0c
--- a/cwctl.py	Fri Sep 11 18:24:47 2009 +0200
+++ b/cwctl.py	Mon Sep 14 11:23:31 2009 +0200
@@ -658,7 +658,7 @@
             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):
-            StopCommand().stop_instance(appid)
+            StopInstanceCommand().stop_instance(appid)
         # run cubicweb/componants migration scripts
         mih.migrate(vcconf, reversed(toupgrade), self.config)
         # rewrite main configuration file
@@ -681,7 +681,7 @@
         print
         print '-> instance migrated.'
         if not (cwcfg.mode == 'dev' or self.config.nostartstop):
-            StartCommand().start_instance(appid)
+            StartInstanceCommand().start_instance(appid)
         print