/usr/lib/python2.6/site-packages/openstackclient
NameSizeModeActions
api/-0755rm
common/-0755rm
compute/-0755rm
identity/-0755rm
image/-0755rm
locale/-0755rm
network/-0755rm
object/-0755rm
tests/-0755rm
volume/-0755rm
i18n.py11040644editdlrm
i18n.pyc4480644editdlrm
shell.py136180644editdlrm
shell.pyc96130644editdlrm
__init__.py7770644editdlrm
__init__.pyc4350644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstackclient/shell.pyc (9613B)
Ñò ;vVc@s_dZddkZddkZddkZddkZddklZddklZddklZddkl Z ddk Z ddk l Z ddk l Z dd k lZdd k lZdd k lZdd k lZdd klZdZed„Zdeifd„ƒYZeidd„ZedjoeieeidƒƒndS(s,Command-line interface to the OpenStack APIsiÿÿÿÿN(tapp(tcommand(tcomplete(thelp(t clientmanager(tcommandmanager(tcontext(t exceptions(ttiming(tutils(tconfigtdefaultcCs…|p d}nd}ttidƒo=tiiƒo-yti|ƒ}Wqgtj oqgXn|ptidƒ‚n|S(sMPrompt user for a password Prompt for a password if stdin is a tty. s Password: tisattys>No password entered, or found via --os-password or OS_PASSWORDN( tNonethasattrtsyststdinR tgetpasstEOFErrortexct CommandError(tprompttpw((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pytprompt_for_password+s #  tOpenStackShellcBsbeZdZeieƒZgZd„Zd„Zd„Z d„Z d„Z d„Z d„Z RS(s#%(levelname)s: %(name)s %(message)sc Cs¤tti_tti_tti_d|_ d|_ t t |ƒidtiƒdtidtidƒdtƒh|_t|_t|_d|_d|_dS(Ns*Set debug logging and traceback on errors.t descriptiontversiontcommand_managers openstack.clit deferred_help(tTrueRtCommandt auth_requiredtFalseRt HelpCommandRtCompleteCommandR tDEFAULT_DEBUG_VALUEtDEFAULT_DEBUG_HELPtsuperRt__init__t__doc__tstriptopenstackclientt __version__RtCommandManagert api_versiontdump_stack_tracetverifytclient_managertcommand_options(tself((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pyR&Js           cCs(ti|iƒ|_|ii|_dS(sConfigure logging for the app.N(RtLogConfiguratortoptionstlog_configuratort dump_traceR-(R1((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pytconfigure_logginggsc CsÉd}||_zŸy tt|ƒi|ƒ}|SWnxtj ol}tidƒiptiƒn|i o|i i t i |ƒƒn|i i dt|ƒƒ|SXWd|i id|ƒXdS(NitsException raised: sEND return value: %s(R0R%Rtrunt Exceptiontloggingt getLoggerthandlerst basicConfigR-tlogterrort tracebackt format_exctstrtinfo(R1targvtret_valte((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pyR8ls   c Cs”tt|ƒi||ƒ}|iddddddtidƒdd ƒ|id dd dd dtid ƒddƒ|iddddddtidƒddƒ|iƒ}|idddddddƒ|idddddddƒ|iddddddtiddtƒddtdƒ|id dd!dd"d#d$d%d&gdtid'ƒdd(ƒ|id)dt dddd*ƒt i |ƒS(+Ns --os-cloudtmetavarstdesttcloudR tOS_CLOUDRs)Cloud name in clouds.yaml (Env: OS_CLOUD)s--os-region-namest region_nametOS_REGION_NAMEs0Authentication region name (Env: OS_REGION_NAME)s --os-cacertstcacertt OS_CACERTs+CA certificate bundle file (Env: OS_CACERT)s--verifytactiont store_trues#Verify server certificate (default)s --insecures'Disable server certificate verifications--os-default-domains tdefault_domaintOS_DEFAULT_DOMAINsDefault domain ID, default=s (Env: OS_DEFAULT_DOMAIN)s--os-interfaces t interfacetchoicestadmintpublictinternalt OS_INTERFACEs_Select an interface type. Valid interface types: [admin, public, internal]. (Env: OS_INTERFACE)s--timingsPrint API call timing info( R%Rtbuild_option_parsert add_argumentR tenvtadd_mutually_exclusive_groupR tDEFAULT_DOMAINR Rtbuild_plugin_option_parser(R1RRtparsert verify_group((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pyRYsl   c Cstt|ƒi|ƒ|iid|iƒ|iid|iƒ|iio|ii o d}nd}t |idd(ƒ}t |idd(ƒ}t |idd(ƒ}t |idd(ƒ}|o| o||i_ n|o| o||i_ n|o| o||i_n|o| o||i_ntid hd(d 6|d 6ƒ}|id |iid |iƒ|_|ii|iƒ|ii|_|iid|iƒ|iid|iiƒ|iiid|iiidtƒ ƒ |_|io |iio|ii|_n|ii|_xzti D]o}t |dd(ƒ} |i!i"ddƒ} |iii| | ƒ} | o#|i#} | |i$| RCR0tdebugR3turlttokentgetattrR ReRfRcRdt cloud_configtOpenStackConfigt get_one_cloudRIR4t configureR5R-tdefaultsR tgetRR.RMRQRtPLUGIN_MODULEStAPI_VERSION_OPTIONtreplacetAPI_NAMER,R twarningtjoinRntkeystsplitRtadd_command_grouptprint_help_if_requestedt ClientManagerRR/(R1RDRhRcRdReRftcctmodtdefault_versiontoptiont version_opttapitskip_old_checktmod_check_api_versiont mod_versionsRt cmd_group((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pyRvÂsŒ             %# $       cCsM|iidt|ddƒ|ii|iiƒ|io|iindS(sSet up auth and API versionsscommand: %s -> %s.%stcmd_namesN( R>RCRzt __class__t __module__t__name__RR/tauth_ref(R1tcmd((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pytprepare_to_run_commandNs    cCsä|iid|ii|pdƒ|iio°|ii|ii i ƒƒti ||iƒ}|i dƒ}d}t |dƒo$|i|idijo d}ntiidƒ|id|gƒ}|i|ƒndS( Nsclean_up %s: %sR7tTimingttablet formattertcsvs s-f(R>RwR—R™R3Rt timing_datatextendR/tsessiont get_timingsRt get_parserRRŸt_formatter_pluginstobjRtstdouttwritet parse_argsR8(R1R›tresultterrttcmdttparsertformatttargs((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pytclean_up[s#   (R™R˜tCONSOLE_MESSAGE_FORMATR:R;R>R¡R&R6R8RYRvRœR±(((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pyRCs    C Œ icCstƒi|ƒS(N(RR8(RD((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pytmainust__main__(R'RR:RR@tcliffRRRRR)topenstackclient.commonRRRRRRR tos_client_configR R{R]R RtAppRRDR³R™texit(((sE/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/shell.pyts.      ÿ3