[c-c shell] we should commit the migration handler, cnx is not None unless connected through pyro stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 11 May 2011 19:02:27 +0200
branchstable
changeset 7372 65bd75f16d65
parent 7371 233b761201e4
child 7373 e5e6ef56cfb5
[c-c shell] we should commit the migration handler, cnx is not None unless connected through pyro
cwctl.py
--- a/cwctl.py	Wed May 11 17:06:41 2011 +0200
+++ b/cwctl.py	Wed May 11 19:02:27 2011 +0200
@@ -905,7 +905,7 @@
                 scripts, args = self.cmdline_parser.largs[1:], self.cmdline_parser.rargs
                 for script in scripts:
                     mih.cmd_process_script(script, scriptargs=args)
-                    cnx.commit()
+                    mih.commit()
             else:
                 mih.interactive_shell()
         finally: