/usr/lib/python2.6/site-packages/openstackclient/compute
Edit: /usr/lib/python2.6/site-packages/openstackclient/compute/client.pyc (3022B)
Ņō
;vVc @ s d d k Z d d k l Z d d k l Z e i e Z d Z d Z d Z h d d 6Z
d a d Z
d Z d
Z d S( i˙˙˙˙N( t
exceptions( t utilst 2t os_compute_api_versiont computes novaclient.clientc C sę d d k l } t d j o
t } n | i t } t i d | t i t
i j } g } | i | D]! } | i
d j o | | qn qn ~ } t i d | i } | i | d | i d | d | d | i d
| i | } | S( s! Returns a compute service client.i˙˙˙˙( t clients$ Instantiating compute client for V%st list_extensionst
endpoint_typet sessiont
extensionst http_log_debugt timingst region_nameN( t
novaclientR t _compute_api_versiont Nonet _api_versiont API_NAMEt LOGt debugR t get_effective_log_levelt loggingt DEBUGt discover_extensionst namet build_kwargs_dictt
_interfacet ClientR t timingt _region_name( t instancet nova_clientt versionR
t _[1]t extR t kwargsR ( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pyt make_client" s$
$ c C s4 | i d d d d t i d d d t d | S( s Hook to add global optionss --os-compute-api-versiont metavars
t defaultt OS_COMPUTE_API_VERSIONt helps Compute API version, default=s (Env: OS_COMPUTE_API_VERSION)( t add_argumentR t envt DEFAULT_API_VERSION( t parser( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pyt build_option_parserE s c C sŦ y d d k l } Wn t j
o t SXd d k } | i | a t | i d j oL t i | i | i p/ t
i d | i i | i i f q¨ n t
S( s0 Validate 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_versionsNs 2.0s% versions supported by client: %s - %s( R
R. t ImportErrort Falset get_api_versionR t
APIVersiont matchest API_MIN_VERSIONt API_MAX_VERSIONR t CommandErrort
get_stringt True( t
check_versionR. R
( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pyt check_api_versionQ s
( R t openstackclient.commonR R t getLoggert __name__R R+ t API_VERSION_OPTIONR t API_VERSIONSR R R$ R- R: ( ( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/compute/client.pyt s
#