Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
python3-dmapi / usr / lib / python3.6 / site-packages / dmapi / conf / __pycache__ / utils.cpython-36.opt-1.pyc
Size: Mime:
3

r`en
ã@sHdZddlmZddlmZdZddd	„Zd
d„Zdd
d„Z	dd„Z
dS)z\Common utilities for conf providers.

This module does not provide any actual conf options.
é)Úloading)ÚcfgÚversionÚmin_versionÚmax_versionNcCsPtjd|d}x(|dd…D]}|jtkr|j|ƒqWtj|ddg|d|S)aúGet auth, Session, and Adapter conf options from keystonauth1.loading.

    :param default_service_type: Default for the service_type conf option on
                                 the Adapter.
    :param deprecated_opts: dict of deprecated opts to register with the ksa
                            Adapter opts.  Works the same as the
                            deprecated_opts kwarg to:
                    keystoneauth1.loading.session.Session.register_conf_options
    :return: List of cfg.Opts.
    F)Zinclude_deprecatedÚdeprecated_optsNZinternalZpublic)Zvalid_interfacesZservice_type)Ú
ks_loadingZget_adapter_conf_optionsÚdestÚ_ADAPTER_VERSION_OPTSÚremoverZset_defaults)Údefault_service_typerZoptsÚopt©rú/usr/lib/python3.6/utils.pyÚget_ksa_adapter_optss
rcCstj|dd„dS)NcSsdS)Nr)ÚxrrrÚ<lambda>-sz_dummy_opt.<locals>.<lambda>)Útype)rZOpt)ÚnamerrrÚ
_dummy_opt*srTcCsft|d|ƒ}tj|||d|r,tj||ƒ|jt||d|dxtD]}|jt|ƒ|dqHWdS)ažRegister keystoneauth auth, Session, and Adapter opts.

    :param conf: oslo_config.cfg.CONF in which to register the options
    :param group: Conf group, or string name thereof, in which to register the
                  options.
    :param default_service_type: Default for the service_type conf option on
                                 the Adapter.
    :param include_auth: For service types where Nova is acting on behalf of
                         the user, auth should come from the user context.
                         In those cases, set this arg to False to avoid
                         registering ksa auth options.
    :param deprecated_opts: dict of deprecated opts to register with the ksa
                            Session or Adapter opts.  See docstring for
                            the deprecated_opts param of:
                    keystoneauth1.loading.session.Session.register_conf_options
    r)r)ÚgroupN)	ÚgetattrrZregister_session_conf_optionsZregister_auth_conf_optionsZ
register_optsrr
Zregister_optr)ZconfrrZinclude_authrrrrrÚregister_ksa_opts0s
rcCsiS)NrrrrrÚ	list_optsPsr)rrr)N)TN)Ú__doc__Z
keystoneauth1rrZoslo_configrr
rrrrrrrrÚ<module>s