<div dir="ltr"><div>There is no special reasons that ListOpt  doesn't  allow parameter,  PortOpt also uses parameter 'choices'.   PortOpt and StrOpt  only accept one value  and use this parameter to double check value is valid which is in the 'choices'.<br></div>What's your use case for ListOpt, just make sure the value(a list) is part of  'choices' ?   Maybe we need another parameter to distinguish<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-26 17:49 GMT+08:00 Kashyap Chamarthy <span dir="ltr"><<a href="mailto:kchamart@redhat.com" target="_blank">kchamart@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br>
<br>
I was looking at oslo_config/cfg.py[*], and the StrOpt() class has<br>
'choices' parameter, to allow a sequence of valid values / tuples of<br>
valid values for descriptions.<br>
<br>
However, I don't see the same 'choices' parameter for the ListOpt()<br>
class.  Out of curiosity, is there a reason to not add it for ListOpt()<br>
too?<br>
<br>
[*] <a href="https://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/cfg.py#n1271" rel="noreferrer" target="_blank">https://git.openstack.org/<wbr>cgit/openstack/oslo.config/<wbr>tree/oslo_config/cfg.py#n1271</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
/kashyap<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>ChangBo Guo(gcb)<br></div><div>Community Director @EasyStack<br></div></div></div></div></div>
</div>