listOpt, re-use default value to another default value

Bug #1950161 reported by Tadeas Kot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.config
Confirmed
Medium
Unassigned

Bug Description

from oslo_config import cfg

a = [cfg.ListOpt('tes_def', default=['a', 'b', 'c'], bounds=True), cfg.ListOpt('tes', default='$tes_def', bounds=True)]
cfg.CONF.register_opts(a, 'test')
print(cfg.CONF.test.tes)
#["'a'", "'b'", "'c'"] shouldn't it be ['a', 'b', 'c']?

Changed in oslo.config:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.