/usr/lib/python2.6/site-packages/openstackclient/network
Edit: /usr/lib/python2.6/site-packages/openstackclient/network/common.pyc (1350B)
Ńň
;vVc @ s d d k l Z d d Z d S( i˙˙˙˙( t
exceptionst namec
C ső t | d | } h | | 6d d 6} | | } | | } t | d j o
| d d St | d j o# d } t i | | | f n | d | d d } | | } t | d j o
| d d Sd | | f } t i | d S( si Find a network resource
:param client: network client
:param resource: name of the resource
:param resources: plural name of resource
:param name_or_id: name or id of resource user is looking for
:param name_attr: key to the name attribute for the resource
For example:
n = find(netclient, 'network', 'networks', 'matrix')
s list_%st idt fieldsi i s+ More than one %s exists with the name '%s'.s' No %s with a name or ID of '%s' exists.N( t getattrt lenR t CommandError(
t clientt resourcet resourcest
name_or_idt name_attrt list_methodt kwargst datat infot msg( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/network/common.pyt find s
N( t openstackclient.commonR R ( ( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/network/common.pyt
s