[cwctl] drop unnecessary admincnx call from 'shell'
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 15 Mar 2016 14:59:24 +0100
changeset 11191 0c27c0da4094
parent 11190 9b3a4ceff06a
child 11192 ba952f509af6
[cwctl] drop unnecessary admincnx call from 'shell' The connection is done by the migration helper.
cubicweb/cwctl.py
--- a/cubicweb/cwctl.py	Mon Mar 07 17:51:30 2016 +0100
+++ b/cubicweb/cwctl.py	Tue Mar 15 14:59:24 2016 +0100
@@ -46,7 +46,6 @@
 from logilab.common.deprecation import deprecated
 
 from cubicweb import ConfigurationError, ExecutionError, BadCommandUsage
-from cubicweb.utils import admincnx
 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg, CWDEV, CONFIGURATIONS
 from cubicweb.toolsutils import Command, rm, create_dir, underline_title
 from cubicweb.__pkginfo__ import version
@@ -880,7 +879,6 @@
             sources = ('all',)
         config.set_sources_mode(sources)
         config.repairing = self.config.force
-        cnx = admincnx(appid)
         mih = config.migration_handler()
         return mih, lambda: mih.shutdown()