[openstack-dev] [oslo.config] MultiStrOpt VS. ListOpt

Steve Martinelli stevemar at ca.ibm.com
Wed May 6 14:55:06 UTC 2015


One key difference about this is that AFAIR.... ListOpt is delimited by 
commas? Whereas MultiStrOpt is specified multiple times. In the case of 
Keystone, we include LDAP values which often include commas. Also for 
longer values, it is easier to read MultiStrOpt instead of ListOpt

Thanks,

Steve Martinelli
OpenStack Keystone Core

Davanum Srinivas <davanum at gmail.com> wrote on 05/06/2015 10:06:38 AM:

> From: Davanum Srinivas <davanum at gmail.com>
> To: "OpenStack Development Mailing List (not for usage questions)" 
> <openstack-dev at lists.openstack.org>, ZhiQiang Fan <aji.zqfan at gmail.com>
> Date: 05/06/2015 10:15 AM
> Subject: Re: [openstack-dev] [oslo.config] MultiStrOpt VS. ListOpt
> 
> ZhiQiang,
> 
> Please log a bug and we can try to do what jd suggested.
> 
> -- dims
> 
> On Wed, May 6, 2015 at 9:21 AM, Julien Danjou <julien at danjou.info> 
wrote:
> > On Wed, May 06 2015, ZhiQiang Fan wrote:
> >
> >> I come across a problem that crudini cannot handle MultiStrOpt[1], I 
don't
> >> know why such type configuration option is needed. It seems ListOpt 
is a
> >> better choice. Currently I find lots of MultiStrOpt options in both 
Nova
> >> and Ceilometer, and I think other projects have too.
> >>
> >> Here are my questions:
> >>
> >> 1) how can I update such type of option without manually rewrite the 
config
> >> file? (like devstack scenario)
> >> 2) Is there any way to migrate MultiStrOpt to ListOpt? The ListOpt 
will
> >> take last specified value while MultiStrOpt takes all, so the 
compatibility
> >> is a big problem
> >>
> >> Any hints?
> >
> > I didn't check extensively, but this is something I hit regularly. It
> > seems to me we have to two types doing more or less the same things 
and
> > mapping to the same data structure (i.e. list). We should unify them.
> >
> > --
> > Julien Danjou
> > // Free Software hacker
> > // http://julien.danjou.info
> >
> > 
__________________________________________________________________________
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe: 
OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> 
> 
> 
> -- 
> Davanum Srinivas :: https://twitter.com/dims
> 
> 
__________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: 
OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150506/437fd27a/attachment.html>


More information about the OpenStack-dev mailing list