/usr/lib/python2.6/site-packages/novaclient/openstack/common/apiclient
Edit: /usr/lib/python2.6/site-packages/novaclient/openstack/common/apiclient/utils.pyc (2143B)
Ñò
=vVc @ sY d d k l Z d d k l Z d d k Z d d k l Z d d k l Z d „ Z d S( iÿÿÿÿ( t encodeutils( t uuidutilsN( t _( t
exceptionsc K s y | i t | ƒ ƒ SWn t t t i f j
o n XyN t i o t i | ƒ } n t i
| ƒ } t i | ƒ o | i | ƒ SWn t t t i f j
o n Xt
| d t ƒ o. y | i | ƒ SWqê t i j
o qê Xn yÚ y | i d | | SWn t i j
o n XyT t
| d d ƒ } | o
| i n d } h | | 6} | i | ƒ | i | SWnO t i j
o@ t d ƒ h | i i i ƒ d 6| d 6} t i | ƒ ‚ n XWnO t i j
o@ t d ƒ h | i i i ƒ d 6| d 6} t i | ƒ ‚ n Xd S( s$ Look for resource in a given manager.
Used as a helper for the _find_* methods.
Example:
.. code-block:: python
def _find_hypervisor(cs, hypervisor):
#Get a hypervisor by name or ID.
return cliutils.find_resource(cs.hypervisors, hypervisor)
t is_alphanum_id_allowedt human_idt resource_classt names9 No %(name)s with a name or ID of '%(name_or_id)s' exists.t
name_or_idsT Multiple %(name)s matches found for '%(name_or_id)s', use an ID to be more specific.N( t gett intt TypeErrort
ValueErrorR t NotFoundt sixt PY2R t safe_encodet safe_decodeR t is_uuid_liket getattrt Falset findt Nonet NAME_ATTRt updateR R t __name__t lowert CommandErrort
NoUniqueMatch( t managerR t find_argst tmp_idt resourcet name_attrt kwargst msg( ( sV /tmp/pip-build-cD3xZi/python-novaclient/novaclient/openstack/common/apiclient/utils.pyt
find_resource# sP
( t
oslo_utilsR R R t! novaclient.openstack.common._i18nR t% novaclient.openstack.common.apiclientR R$ ( ( ( sV /tmp/pip-build-cD3xZi/python-novaclient/novaclient/openstack/common/apiclient/utils.pyt
s