# glance.common.config module

Routines for configuring Glance

glance.common.config.load_paste_app(app_name, flavor=None, conf_file=None)

  Builds and returns a WSGI app from a paste config file.

  We assume the last config file specified in the supplied ConfigOpts object is the paste config file, if conf_file is None.

  Parameters

    - app_name – name of the application to load

    - flavor – name of the variant of the application to load

    - conf_file – path to the paste config file

  Raises

    RuntimeError – when config file cannot be located or application cannot be loaded from config file

glance.common.config.parse_args(args=None, usage=None, default_config_files=None)

glance.common.config.parse_cache_args(args=None)

glance.common.config.set_config_defaults()

  This method updates all configuration default values.

glance.common.config.set_cors_middleware_defaults()

  Update default configuration options for oslo.middleware.

this page last updated: 2026-03-19 02:17:34

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

found an error? report a bug