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    
Size: Mime:
ó
µEYc@siddlZddlZddlmZddlmZd	Zd„Zeƒdd„ƒZd„Z	dS(
iÿÿÿÿN(t
positional(tbasetregister_argparse_argumentstload_from_argparse_argumentscCsSxL|jƒD]>}|jd|jd|jd|jdd|j|jŒq
WdS(Ntdefaulttmetavarthelptdestsos_%s(tget_optionstadd_argumenttargparse_defaultRRRt
argparse_args(tparsertplugintopt((sN/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/cli.pyt#_register_plugin_argparse_argumentss				c
Csútjdtƒ}tjjdtjjd|ƒƒ}x6||fD](}|jddddd|d	d
ƒqCW|j|ƒ\}}|js‘dSt
|jtjƒr¸d}|j}	nd|j}tj
|jƒ}	|jd
|ƒ}
t|
|	ƒ|	S(sûRegister CLI options needed to create a plugin.

    The function inspects the provided arguments so that it can also register
    the options required for that specific plugin if available.

    :param parser: the parser to attach argparse options to.
    :type parser: argparse.ArgumentParser
    :param list argv: the arguments provided to the appliation.
    :param str/class default: a default plugin name or a plugin object to use
                              if one isn't specified by the CLI. default: None.

    :returns: The plugin class that will be loaded or None if not provided.
    :rtype: :class:`keystoneauth1.plugin.BaseAuthPlugin`

    :raises keystoneauth1.exceptions.auth_plugins.NoMatchingPlugin:
        if a plugin cannot be created.
    tadd_helptOS_AUTH_TYPEtOS_AUTH_PLUGINs--os-auth-types--os-auth-pluginRs<name>RRsAuthentication type to usesDefault Authentication optionss"Options specific to the %s plugin.sAuthentication OptionsN(targparsetArgumentParsertFalsetostenvirontgetR	tparse_known_argstos_auth_typetNonet
isinstanceRt
BaseLoadertget_plugin_loadertadd_argument_groupR(RtargvRt	in_parsert
env_plugintptoptionst_argstmsgR
tgroup((sN/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/cli.pyR"s(		

csYˆjs
dStˆjtƒr+ˆj}ntjˆjƒ}‡fd†}|j|ƒS(sÔRetrieve the created plugin from the completed argparse results.

    Loads and creates the auth plugin from the information parsed from the
    command line by argparse.

    :param Namespace namespace: The result from CLI parsing.

    :returns: An auth plugin, or None if a name is not provided.
    :rtype: :class:`keystoneauth1.plugin.BaseAuthPlugin`

    :raises keystoneauth1.exceptions.auth_plugins.NoMatchingPlugin:
        if a plugin cannot be created.
    cstˆd|jƒS(Nsos_%s(tgetattrR(R(t	namespace(sN/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/cli.pyt_getterfsN(RRRttypeRRtload_from_options_getter(R)tkwargsR
R*((R)sN/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/cli.pyRPs	(sregister_argparse_argumentssload_from_argparse_arguments(
RRRtkeystoneauth1.loadingRt__all__RRRR(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/cli.pyt<module>
s		-