/usr/lib/python2.6/site-packages/keystoneclient
NameSizeModeActions
apiclient/-0755rm
auth/-0755rm
common/-0755rm
contrib/-0755rm
fixture/-0755rm
generic/-0755rm
hacking/-0755rm
locale/-0755rm
middleware/-0755rm
openstack/-0755rm
tests/-0755rm
v2_0/-0755rm
v3/-0755rm
access.py247750644editdlrm
access.pyc331160644editdlrm
adapter.py84010644editdlrm
adapter.pyc91980644editdlrm
base.py179510644editdlrm
base.pyc207410644editdlrm
baseclient.py13130644editdlrm
baseclient.pyc21330644editdlrm
client.py29130644editdlrm
client.pyc29130644editdlrm
discover.py160230644editdlrm
discover.pyc162010644editdlrm
exceptions.py149840644editdlrm
exceptions.pyc243890644editdlrm
httpclient.py385470644editdlrm
httpclient.pyc332640644editdlrm
i18n.py11620644editdlrm
i18n.pyc5580644editdlrm
service_catalog.py166100644editdlrm
service_catalog.pyc150700644editdlrm
session.py406950644editdlrm
session.pyc358510644editdlrm
shell.py195880644editdlrm
shell.pyc148680644editdlrm
utils.py115890644editdlrm
utils.pyc127330644editdlrm
_discover.py111260644editdlrm
_discover.pyc109290644editdlrm
__init__.py24350644editdlrm
__init__.pyc19940644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/shell.pyc (14868B)
Ñò ƒd d?ƒ|id@dt dAdtƒd d d dBƒ|idCd tiƒ|idDdtd d dEdFd dGƒ|idHddIdt i dEdJd dKt i ƒt ii|ƒ|idLd tiƒ|idMd tiƒ|idNd tiƒ|S(ONtprogtkeystonet descriptiontepilogs;See "keystone help COMMAND" for help on a specific command.tadd_helptformatter_classs-hs--helptactiont store_truethelps --versiontversions#Shows the client version and exits.s--debugRs“Prints debugging output onto the console, this includes the curl request and response calls. Helpful for debugging and understanding the API calls.s --os-usernametmetavarst OS_USERNAMEs_Name used for authentication with the OpenStack Identity service. Defaults to env[OS_USERNAME].s --os_usernames --os-passwordst OS_PASSWORDscPassword used for authentication with the OpenStack Identity service. Defaults to env[OS_PASSWORD].s --os_passwords--os-tenant-namestOS_TENANT_NAMEsDTenant to request authorization on. Defaults to env[OS_TENANT_NAME].s--os_tenant_names--os-tenant-ids t OS_TENANT_IDsBTenant to request authorization on. Defaults to env[OS_TENANT_ID].s--os_tenant_ids --os-auth-urls t OS_AUTH_URLsVSpecify the Identity endpoint to use for authentication. Defaults to env[OS_AUTH_URL].s --os_auth_urls--os-region-names tOS_REGION_NAMEs;Specify the region to use. Defaults to env[OS_REGION_NAME].s--os_region_names--os-identity-api-versionstOS_IDENTITY_API_VERSIONtKEYSTONE_VERSIONsUSpecify Identity API version to use. Defaults to env[OS_IDENTITY_API_VERSION] or 2.0.s--os_identity_api_versions --os-tokenstOS_SERVICE_TOKENs‘Specify an existing token to use instead of retrieving one via authentication (e.g. with username & password). Defaults to env[OS_SERVICE_TOKEN].s --os-endpointstOS_SERVICE_ENDPOINTs‰Specify an endpoint to use instead of retrieving one from the service catalog (via authentication). Defaults to env[OS_SERVICE_ENDPOINT].s --os-cachetOS_CACHEs4Use the auth token cache. Defaults to env[OS_CACHE].s --os_caches--force-new-tokentdesttforce_new_tokensÑIf the keyring is available and in use, token will always be stored and fetched from the keyring until the token has expired. Use this option to request a new token and replace the existing one in the keyring.s--stale-durations tstale_durations¹Stale duration (in seconds) used to determine whether a token has expired when retrieving it from keyring. This is useful in mitigating process or network delays. Default is %s seconds.s --os_cacerts--os_keys --os_cert(Rt__doc__tstriptFalsetOpenStackHelpFormattert add_argumenttargparsetSUPPRESStkeystoneclientt __version__RRtSTALE_TOKEN_DURATIONRtSessiontregister_cli_options(Rtparser((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pytget_base_parserEs¶                                               cCs©|iƒ}h|_|iddƒ}yhtd6|}Wntj o t}nX|i||ƒ|i|tƒ|i|tƒ|i||ƒ|i|ƒ|S(NR&s s2.0( RBt subcommandstadd_subparserst shell_v2_0tKeyErrort _find_actionst shell_generictshell_bootstrapt_add_bash_completion_subparser(RR%RAt subparserstactions_module((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pytget_subcommand_parserÕs     cCs?|iddtdtƒ}||id<|id|iƒdS(Ntbash_completionR R!tfunc(t add_parserR7R8RCt set_defaultstdo_bash_completion(RRKt subparser((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyRJês   c Cs!xd„t|ƒDƒD]}|diddƒ}t||ƒ}|ipd}|iƒidƒd}t|dgƒ}|i|d |d |d td tƒ} | i d ddd d t i ƒ| |i |<| i ddƒ} x$|D]\} } | i | | ŽqéW| id|ƒqWdS(Ncss-x&|]}|idƒo |VqqWdS(tdo_N(t startswith(t.0ta((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pys ôs it_t-Rs it argumentsR$RR R!s-hs--helpR"ttitlet ArgumentsRO(tdirtreplacetgetattrR5R6tsplitRPR7R8R9R:R;RCtadd_argument_groupRQ( RRKRLtattrtcommandtcallbacktdescR$RZRStgrouptargsR ((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyRGós*    cCs#|ip |iop|iptidƒ‚n|iptidƒ‚n|ip|ip |iod}t|ƒqnœ|iptidƒ‚n|ip |io[|iptidƒ‚n|ip0ti ƒ|_|iptidƒ‚q qntidƒ‚dS(NsIExpecting a token provided via either --os-token or env[OS_SERVICE_TOKEN]sSExpecting an endpoint provided via either --os-endpoint or env[OS_SERVICE_ENDPOINT]sjWARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).sBExpecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]sJExpecting a username provided via either --os-username or env[OS_USERNAME]s^Expecting a password provided via either --os-password, env[OS_PASSWORD], or prompted responses”Expecting authentication method via either a service token, --os-token or env[OS_SERVICE_TOKEN], credentials, --os-username or env[OS_USERNAME]( tos_tokent os_endpointtexct CommandErrort os_usernamet os_passwordt os_auth_urltprintRtprompt_user_password(RRgtmsg((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyt auth_check s.          c #Csè|iƒ}|i|ƒ\}}|i}|i|ƒ}||_| p |io|i|ƒdS|i|ƒ}|i|ijo|i|ƒdS|i|i jo|i |ƒdS|i o)t i }t i dƒ}|idƒn t i}t id|ƒ|ip tdƒ|_|ip tdƒ|_ti|iƒoItid|id|id |id |id |id |iƒ|_né|i|ƒd} |io|io |i} n|i}|i!|ƒd |i"d|i#d|i$d| d|id|i%d|id|i&d|id |id |id |id|i d|i'd|i(d|i)d |iƒ|_y|i|i|ƒWnIt*i+j ot*i,dƒ‚n&t*i-j ot*i,dƒ‚nXdS(Nitiso8601tWARNtlevelt SERVICE_TOKENtSERVICE_ENDPOINTtendpointtcacerttkeytcerttinsecurettimeouttusernamet tenant_namet tenant_idttokentpasswordtauth_urlt region_nametdebugt use_keyringR3R4s'Invalid OpenStack Identity credentials.sUnable to authorize user(.RBtparse_known_argstos_identity_api_versionRMRAR$tdo_helpt parse_argsRORRR…tloggingtDEBUGt getLoggertsetLeveltWARNINGt basicConfigRhRRiRtisunauthenticatedRHt CLIENT_CLASSRnt os_cacerttos_keytos_certR|R}tcsRrtNonet get_api_classRltos_tenant_namet os_tenant_idRmtos_region_nametos_cacheR3R4Rjt UnauthorizedRktAuthorizationFailure( RtargvRAtoptionsRgt api_versiontsubcommand_parsert logging_levelt iso_loggerR((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pytmain;sv                               cCsSyhtid6|SWn6tj o*|od|}t|ƒntiSXdS(Ns2.0sAWARNING: unsupported identity-api-version %s, falling back to 2.0(RER’RFRo(RR%Rq((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyR˜Œs  cCsžtƒ}tƒ}xT|iiƒD]C\}}|i|ƒx't|iiƒD]}|i|ƒqNWq"W|idƒ|idƒtdi ||BƒƒdS(s‡Prints all of the commands and options to stdout. The keystone.bash_completion script doesn't have to hard code them. sbash-completionRNt N( tsetRCtitemstaddtlistt _optionalst_option_string_actionstremoveRotjoin(RRgtcommandsR tsc_strtsctoption((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyRR˜s      RcR&s tnargst?R$sDisplay help for .cCsit|ddƒoE|i|ijo|i|iiƒqetid|iƒ‚n|iiƒdS(s:Display help about this program or one of its subcommands.Rcs'%s' is not a valid subcommandN(R_R—RcRCt print_helpRjRkRA(RRg((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyR‰¨s  (t__name__t __module__R:tArgumentParserRRBRMRJRGRrR¥R˜RRRtargR‰(((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyR6s   1 Q R8cBs&eZdZdZd„Zd„ZRS(ii cCsœxtd„|ƒD]k}|ipqnxQ|iD]F}t|ƒ|i}||ijo||ijo ||_q4q4WqWtt|ƒi|ƒdS(NcSs|i S((toption_strings(tx((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyt¼s( tfiltertchoicestlentINDENT_BEFORE_ARGUMENTSt_max_help_positiontMAX_WIDTH_ARGUMENTStsuperR8t add_arguments(RtactionsR"tchoicetlength((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyRÄ»s  cCs8d|diƒ|df}tt|ƒi|ƒdS(Ns%s%sii(tupperRÃR8t start_section(Rtheading((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyRÉÆs(R¶R·RÀRÂRÄRÉ(((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyR8·s cCs›ytƒitidƒWnytj o'tddtiƒtidƒnHtj o;}tt i t i |ƒƒdtiƒtidƒnXdS(Nis... terminating keystone clienttfilei‚( RR¥tsysRŸtKeyboardInterruptRotstderrtexitt ExceptionRt safe_encodetsixt text_type(te((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyR¥Ìs%t__main__( R5t __future__RR:R‹R RÌRt oslo_utilsRRÒR<Rt keystoneclient.contrib.bootstrapRRIRRjtkeystoneclient.genericRHRRtkeystoneclient.v2_0RERtobjectRt HelpFormatterR8R¥R¶RÏ(((sC/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/shell.pyts.        ÿ‚