/usr/lib/python2.6/site-packages/openstackclient/compute
NameSizeModeActions
v2/-0755rm
client.py37400644editdlrm
client.pyc30220644editdlrm
__init__.py00644editdlrm
__init__.pyc1670644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstackclient/compute/client.pyc (3022B)
Ņō ;vVc@sddkZddklZddklZeieƒZdZdZdZ hdd6Z da d„Z d „Zd „ZdS( i˙˙˙˙N(t exceptions(tutilst2tos_compute_api_versiontcomputesnovaclient.clientc Csęddkl}td j o t}n|it}tid|ƒti ƒt i j}g}|i |ƒD]!}|i djo ||qnqn~}tid|iƒ}|i|d|id|d|d |id |i|}|S( s!Returns a compute service client.i˙˙˙˙(tclients$Instantiating compute client for V%stlist_extensionst endpoint_typetsessiont extensionsthttp_log_debugttimingst region_nameN(t novaclientRt_compute_api_versiontNonet _api_versiontAPI_NAMEtLOGtdebugRtget_effective_log_leveltloggingtDEBUGtdiscover_extensionstnametbuild_kwargs_dictt _interfacetClientRttimingt _region_name( tinstancet nova_clienttversionR t_[1]textR tkwargsR((sN/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pyt make_client"s$   $   c Cs4|iddddtidƒddtdƒ|S( sHook to add global optionss--os-compute-api-versiontmetavarstdefaulttOS_COMPUTE_API_VERSIONthelpsCompute API version, default=s (Env: OS_COMPUTE_API_VERSION)(t add_argumentRtenvtDEFAULT_API_VERSION(tparser((sN/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pytbuild_option_parserEsc CsŦyddkl}Wntj otSXddk}|i|ƒat|idƒjoLti|i|i ƒp/t i d|ii ƒ|i i ƒfƒ‚q¨nt S(s0Validate version supplied by user Returns: * True if version is OK * False if the version has not been checked and the previous plugin check should be performed * throws an exception if the version is no good TODO(dtroyer): make the exception thrown a version-related one i˙˙˙˙(t api_versionsNs2.0s%versions supported by client: %s - %s(R R.t ImportErrortFalsetget_api_versionRt APIVersiontmatchestAPI_MIN_VERSIONtAPI_MAX_VERSIONRt CommandErrort get_stringtTrue(t check_versionR.R ((sN/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pytcheck_api_versionQs    (Rtopenstackclient.commonRRt getLoggert__name__RR+tAPI_VERSION_OPTIONRt API_VERSIONSRRR$R-R:(((sN/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pyts   #