Repository URL to install this package:
|
Version:
4.0.105 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
keystoneclient
/
auth
/
cli.pyc
|
|---|
ó
ӍEYc @ s¦ d d l Z d d l Z d d l m Z d d l m Z d d l m Z e j d d d d d d
e d d Z e j d d d d d d
d Z
d S(
iÿÿÿÿN( t removals( t
positional( t baset messages= keystoneclient auth plugins are deprecated. Use keystoneauth.t versions 2.1.0t removal_versions 3.0.0c C så t j d t } t j j d | } x3 | | f D]% } | j d d d d | d d q4 W| j | \ } } | j s d St
| j t r£ d } | j } n d
| j } t j
| j } | j d | }
| j |
| 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 argparse.ArgumentParser: the parser to attach argparse options to.
:param List argv: the arguments provided to the application.
: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: :py:class:`keystoneclient.auth.BaseAuthPlugin`
:raises keystoneclient.exceptions.NoMatchingPlugin: if a plugin cannot be
created.
t add_helpt OS_AUTH_PLUGINs --os-auth-plugint metavars <name>t defaultt helps The auth plugin to loads Default Authentication optionss" Options specific to the %s plugin.s Authentication OptionsN( t argparset ArgumentParsert Falset ost environt gett add_argumentt parse_known_argst os_auth_plugint Nonet
isinstancet typeR t get_plugin_classt add_argument_groupt register_argparse_arguments( t parsert argvR t in_parsert
env_plugint pt optionst _argst msgt plugint group( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/cli.pyR s$
c K sM | j s
d St | j t r+ | j } n t j | j } | 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: :py:class:`keystoneclient.auth.BaseAuthPlugin`
:raises keystoneclient.exceptions.NoMatchingPlugin: if a plugin cannot be
created.
N( R R R R R R t load_from_argparse_arguments( t namespacet kwargsR" ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/cli.pyR$ F s ( R R t
debtcollectorR R t keystoneclient.authR t removeR R R$ ( ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/cli.pyt <module>
s *