[ctl] Load available configurations in "cubicweb-ctl list" 3.24
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 24 Feb 2017 09:18:08 +0100
branch3.24
changeset 11997 7c296802980b
parent 11941 f96f77a190f2
child 12065 a9c710632863
[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	Tue Jan 31 11:06:28 2017 +0100
+++ b/cubicweb/cwctl.py	Fri Feb 24 09:18:08 2017 +0100
@@ -211,6 +211,7 @@
             print()
 
         if mode in ('all', 'config', 'configurations'):
+            cwcfg.load_available_configs()
             print('Available configurations:')
             for config in CONFIGURATIONS:
                 print('*', config.name)