The oslo_policy.opts Module

The oslo_policy.opts Module

oslo_policy.opts.list_opts()

Return a list of oslo.config options available in the library.

The returned list includes all oslo.config options which may be registered at runtime by the library. Each element of the list is a tuple. The first element is the name of the group under which the list of elements in the second element will be registered. A group name of None corresponds to the [DEFAULT] group in config files. This function is also discoverable via the ‘oslo_messaging’ entry point under the ‘oslo.config.opts’ namespace. The purpose of this is to allow tools like the Oslo sample config file generator to discover the options exposed to users by this library.

Returns:a list of (group_name, opts) tuples
oslo_policy.opts.set_defaults(conf, policy_file=None)

Set defaults for configuration variables.

Overrides default options values.

Parameters:
  • conf (oslo.config.cfg.ConfigOpts) – Configuration object, managed by the caller.
  • policy_file (unicode) – The base filename for the file that defines policies.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.