[ctl] Load available configurations in "cubicweb-ctl list"
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 24 Feb 2017 09:18:08 +0100
changeset 11973 5e7282bdf140
parent 11972 a2bc933ffb59
child 11974 d92d75b17a85
[ctl] Load available configurations in "cubicweb-ctl list" Otherwise we rely on associated ctl plugins to be loaded which is arguably orthogonal to configurations.
cubicweb/cwctl.py
--- a/cubicweb/cwctl.py	Thu Feb 23 08:54:01 2017 +0100
+++ b/cubicweb/cwctl.py	Fri Feb 24 09:18:08 2017 +0100
@@ -205,6 +205,7 @@
             print()
 
         if mode in ('all', 'config', 'configurations'):
+            cwcfg.load_available_configs()
             print('Available configurations:')
             for config in CONFIGURATIONS:
                 print('*', config.name)