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-el9 / usr / lib / python3.9 / site-packages / dmapi / conf / __pycache__ / utils.cpython-39.pyc
Size: Mime:
a

քen
ã@sHdZddlmZddlmZdZddd„Zdd	„Zddd„Z	d
d„Z
dS)z\Common utilities for conf providers.

This module does not provide any actual conf options.
é)Úloading)Úcfg)ÚversionZmin_versionZmax_versionNcCsLtjd|d}|dd…D]}|jtvr| |¡qtj|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ÚremoverÚset_defaults)Údefault_service_typerZoptsÚopt©r
ú4/usr/lib/python3.9/site-packages/dmapi/conf/utils.pyÚget_ksa_adapter_optssÿ
þrcCstj|dd„dS)NcSsdS©Nr
)Úxr
r
rÚ<lambda>-óz_dummy_opt.<locals>.<lambda>)Útype)rZOpt)Únamer
r
rÚ
_dummy_opt*srTcCsbt|d|ƒ}tj|||d|r,t ||¡|jt||d|dtD]}|jt|ƒ|dqFdS)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_optsrrZregister_optr)ZconfrrZinclude_authrrr
r
rÚregister_ksa_opts0sÿÿÿrcCsiSrr
r
r
r
rÚ	list_optsPsr)N)TN)Ú__doc__Z
keystoneauth1rrZoslo_configrrrrrrr
r
r
rÚ<module>s
ÿ