On Jul 23, 2014, at 11:10 PM, Baohua Yang <yangbao...@gmail.com> wrote:

> Hi, all
>      The current oslo.cfg module provides an easy way to load name known 
> options/groups from he configuration files.
>       I am wondering if there's a possible solution to dynamically load them?
> 
>       For example, I do not know the group names (section name in the 
> configuration file), but we read the configuration file and detect the 
> definitions inside it.
> 
> #Configuration file:
> [group1]
> key1 = value1
> key2 = value2
> 
>        Then I want to automatically load the group1. key1 and group2. key2, 
> without knowing the name of group1 first.

If you don’t know the group name, how would you know where to look in the 
parsed configuration for the resulting options?

Doug

> 
>         Thanks a lot!
> 
> -- 
> Best wishes!
> Baohua
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to