[modules] run initialize with --automatic
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 23 Oct 2014 16:52:23 +0200
changeset 9 804f4c3bb3ea
parent 8 8ba9b3a870fb
child 10 f0ac4b0af639
[modules] run initialize with --automatic
_modules/cubicweb.py
--- a/_modules/cubicweb.py	Thu Jun 19 15:51:01 2014 +0200
+++ b/_modules/cubicweb.py	Thu Oct 23 16:52:23 2014 +0200
@@ -199,7 +199,7 @@
 def initialize(name, drop=False):
     '''Initialize the database for an instance
     '''
-    cmd = ('cubicweb-ctl db-init --config-level 0 {0}').format(name)
+    cmd = ('cubicweb-ctl db-init --automatic --config-level 0 {0}').format(name)
     if drop:
         cmd += ' --drop'
     return __salt__['cmd.run'](cmd)