cubicweb #17052905 Required config options only specified by env cannot be retrieved [open]

To reproduce: define a required my-option config variable (with 'default': REQUIRED in its definition) but do not set it in the all-in-one.conf file.

Set the CW_MY_OPTION environment variable, start a cubicweb-ctl shell for your instance and execute print repo.vreg.config['my-option']. You will get a traceback like:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/fcayre/.virtualenvs/nemo/local/lib/python2.7/site-packages/cubicweb/", line 422, in __getitem__
    file_value = super(CubicWebNoAppConfiguration, self).__getitem__(key)
  File "/home/fcayre/.virtualenvs/nemo/lib/python2.7/site-packages/logilab/common/", line 963, in __getitem__
    raise KeyError(key)
KeyError: 'my-option'

We'd rather expect getting the value from the CW_MY_OPTION environment variable.

done in<not specified>
closed by<not specified>