[openstack-dev] [oslo.cfg] Dynamically load in options/groups values from the configuration files

Baohua Yang yangbaohua at gmail.com
Thu Jul 24 03:10:31 UTC 2014


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.

        Thanks a lot!

-- 
Best wishes!
Baohua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140724/c0a0ec79/attachment.html>


More information about the OpenStack-dev mailing list