[openstack-dev] [oslo] Any reason why not have 'choices' parameter for ListOpt()?

Kashyap Chamarthy kchamart at redhat.com
Mon Mar 26 09:49:23 UTC 2018


Hi there,

I was looking at oslo_config/cfg.py[*], and the StrOpt() class has
'choices' parameter, to allow a sequence of valid values / tuples of
valid values for descriptions.

However, I don't see the same 'choices' parameter for the ListOpt()
class.  Out of curiosity, is there a reason to not add it for ListOpt()
too?

[*] https://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/cfg.py#n1271

-- 
/kashyap



More information about the OpenStack-dev mailing list