Global ConfigOpts

Global ConfigOpts

This module also contains a global instance of the ConfigOpts class in order to support a common usage pattern in OpenStack:

from oslo_config import cfg

opts = [
    cfg.StrOpt('bind_host', default=''),
    cfg.PortOpt('bind_port', default=9292),


def start(server, app):
    server.start(app, CONF.bind_port, CONF.bind_host)
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.